(t *testing.T, kv *plugin.KVOperator, ctx context.Context, group, key string)
| 60 | } |
| 61 | |
| 62 | func 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}) |
| 64 | if err != plugin.ErrKVKeyNotFound { |
| 65 | t.Errorf("Expected ErrKVKeyNotFound for %s/%s, got: %v", group, key, err) |
| 66 | } |
| 67 | if val != "" { |
| 68 | t.Errorf("Expected empty value for %s/%s, got: '%s'", group, key, val) |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | func assertError(t *testing.T, err error, expected error, msg string) { |
| 73 | if err != expected { |
no test coverage detected