github.com/koko1123/flow-go-1@v0.29.6/storage/badger/chunks_queue_test.go (about) 1 package badger 2 3 import "testing" 4 5 // 1. should be able to read after store 6 // 2. should be able to read the latest index after store 7 // 3. should return false if a duplicate chunk is stored 8 // 4. should return true if a new chunk is stored 9 // 5. should return an increased index when a chunk is stored 10 // 6. storing 100 chunks concurrent should return last index as 100 11 // 7. should not be able to read with wrong index 12 // 8. should return init index after init 13 // 9. storing chunk and updating the latest index should be atomic 14 func TestStoreAndRead(t *testing.T) { 15 // TODO 16 }