MCPcopy Index your code
hub / github.com/apache/answer / mustDel

Function mustDel

plugin/plugin_test/kv_storage_test.go:56–60  ·  view source on GitHub ↗
(t *testing.T, kv *plugin.KVOperator, ctx context.Context, group, key string)

Source from the content-addressed store, hash-verified

54}
55
56func mustDel(t *testing.T, kv *plugin.KVOperator, ctx context.Context, group, key string) {
57 if err := kv.Del(ctx, plugin.KVParams{Group: group, Key: key}); err != nil {
58 t.Fatalf("Failed to delete %s/%s: %v", group, key, err)
59 }
60}
61
62func assertNotFound(t *testing.T, kv *plugin.KVOperator, ctx context.Context, group, key string) {
63 val, err := kv.Get(ctx, plugin.KVParams{Group: group, Key: key})

Callers 1

TestBasicOperationsFunction · 0.85

Calls 1

DelMethod · 0.65

Tested by

no test coverage detected