Function
testDeleteNotFoundBatch
(t *testing.T, kv sorted.KeyValue)
Source from the content-addressed store, hash-verified
| 94 | ) |
| 95 | |
| 96 | func testDeleteNotFoundBatch(t *testing.T, kv sorted.KeyValue) { |
| 97 | b := kv.BeginBatch() |
| 98 | b.Delete(notExistKey) |
| 99 | if err := kv.CommitBatch(b); err != nil { |
| 100 | t.Fatalf("Batch deletion of non existing key returned an error: %v", err) |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | func testDeletePartialNotFoundBatch(t *testing.T, kv sorted.KeyValue) { |
| 105 | if err := kv.Set(butIExistKey, "whatever"); err != nil { |