github.com/bytom/bytom@v1.1.2-0.20221014091027-bbcba3df6075/test/integration/create_store_items_test.go (about) 1 package integration 2 3 import ( 4 "fmt" 5 "testing" 6 7 "github.com/bytom/bytom/database" 8 "github.com/bytom/bytom/database/storage" 9 "github.com/bytom/bytom/testutil" 10 ) 11 12 func TestCreateStoreItems(t *testing.T) { 13 t.Skip("Skipping testing in CI environment") 14 mainChainIndex := []int{0, 1, 2} 15 blocks := []*attachBlock{blockMap[0][0], blockMap[1][0], blockMap[2][3]} 16 itme := &storeItem{ 17 key: database.CalcUtxoKey(hashPtr(testutil.MustDecodeHash("c93b687f98d039046cd2afd514c62f5d1c2c3b0804e4845b00a33e736ef48a33"))), 18 val: &storage.UtxoEntry{Type: storage.NormalUTXOType, BlockHeight: 1, Spent: false}, 19 } 20 21 items := createStoreItems(mainChainIndex, blocks, itme) 22 fmt.Println(items) 23 }