MCPcopy
hub / github.com/perkeep/perkeep / testDeleteNotFoundBatch

Function testDeleteNotFoundBatch

pkg/sorted/kvtest/kvtest.go:96–102  ·  view source on GitHub ↗
(t *testing.T, kv sorted.KeyValue)

Source from the content-addressed store, hash-verified

94)
95
96func 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
104func testDeletePartialNotFoundBatch(t *testing.T, kv sorted.KeyValue) {
105 if err := kv.Set(butIExistKey, "whatever"); err != nil {

Callers 1

TestSortedFunction · 0.85

Calls 4

BeginBatchMethod · 0.65
DeleteMethod · 0.65
CommitBatchMethod · 0.65
FatalfMethod · 0.65

Tested by 1

TestSortedFunction · 0.68