Helper functions for testing
(t *testing.T, kv *plugin.KVOperator, ctx context.Context, group, key, value string)
| 38 | |
| 39 | // Helper functions for testing |
| 40 | func mustSet(t *testing.T, kv *plugin.KVOperator, ctx context.Context, group, key, value string) { |
| 41 | if err := kv.Set(ctx, plugin.KVParams{Group: group, Key: key, Value: value}); err != nil { |
| 42 | t.Fatalf("Failed to set %s/%s: %v", group, key, err) |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | func mustGet(t *testing.T, kv *plugin.KVOperator, ctx context.Context, group, key, expected string) { |
| 47 | val, err := kv.Get(ctx, plugin.KVParams{Group: group, Key: key}) |
no test coverage detected