(t *testing.T, l *List, readTs uint64)
| 215 | } |
| 216 | |
| 217 | func getFirst(t *testing.T, l *List, readTs uint64) (res pb.Posting) { |
| 218 | require.NoError(t, l.Iterate(readTs, 0, func(p *pb.Posting) error { |
| 219 | res = *p |
| 220 | return ErrStopIteration |
| 221 | })) |
| 222 | return res |
| 223 | } |
| 224 | |
| 225 | func checkValue(t *testing.T, ol *List, val string, readTs uint64) { |
| 226 | p := getFirst(t, ol, readTs) |
no test coverage detected