(t *testing.T, prefix string, expectedKeys []string, iterators ...lib.IteratorI)
| 143 | } |
| 144 | |
| 145 | func validateIterators(t *testing.T, prefix string, expectedKeys []string, iterators ...lib.IteratorI) { |
| 146 | for _, it := range iterators { |
| 147 | for i := 0; it.Valid(); func() { i++; it.Next() }() { |
| 148 | got, wanted := string(it.Key()), prefix+string(lib.JoinLenPrefix([]byte(expectedKeys[i]))) |
| 149 | require.Equal(t, wanted, got, fmt.Sprintf("wanted %s got %s", wanted, got)) |
| 150 | } |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | // bulkSetPrefixedKV sets multiple single segment length prefixed key-value pairs in the store |
| 155 | func bulkSetPrefixedKV(t *testing.T, store lib.WStoreI, prefix string, keyValue ...string) { |
no test coverage detected