Esempio n. 1
0
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)
	}
}
Esempio n. 2
0
func (h *blockHarness) prev(pref string, iter iterator.Iterator) {
	if !iter.Prev() {
		h.t.Fatalf("block: %sPrev: eoi, err=%v", pref, iter.Error())
	}
}