func (h *blockHarness) soi(pref string, iter iterator.Iterator) { if iter.Prev() { h.t.Fatalf("block: %sPrev: expect soi", pref) } else if err := iter.Error(); err != nil { h.t.Fatalf("block: %sPrev: expect soi but got error, err=%v", pref, err) } }
func (h *blockHarness) prev(pref string, iter iterator.Iterator) { if !iter.Prev() { h.t.Fatalf("block: %sPrev: eoi, err=%v", pref, iter.Error()) } }