(t *testing.T)
| 115 | } |
| 116 | |
| 117 | func TestSimpleIterator(t *testing.T) { |
| 118 | keys := []string{"1", "2", "3"} |
| 119 | vals := []string{"v1", "v2", "v3"} |
| 120 | it := newSimpleIterator(keys, vals, false) |
| 121 | it.Rewind() |
| 122 | k, v := getAll(it) |
| 123 | require.EqualValues(t, keys, k) |
| 124 | require.EqualValues(t, vals, v) |
| 125 | |
| 126 | closeAndCheck(t, it, 1) |
| 127 | } |
| 128 | |
| 129 | func reversed(a []string) []string { |
| 130 | var out []string |
nothing calls this directly
no test coverage detected
searching dependent graphs…