()
| 89 | } |
| 90 | |
| 91 | func (s Ops) String() string { |
| 92 | buf := bytes.NewBuffer(nil) |
| 93 | for _, op := range s { |
| 94 | se := "" |
| 95 | if op.err != nil { |
| 96 | se = " (" + op.err.Error() + ")" |
| 97 | } |
| 98 | fmt.Fprintf(buf, "%v: %q = %x%s\n", op.typ, op.key, op.val, se) |
| 99 | } |
| 100 | return buf.String() |
| 101 | } |
| 102 | |
| 103 | func TestApplyDeltas(t *testing.T) { |
| 104 | kdb := btree.New() |