MCPcopy
hub / github.com/grafana/dskit / buildMockClient

Function buildMockClient

kv/mock.go:15–18  ·  view source on GitHub ↗
(logger log.Logger)

Source from the content-addressed store, hash-verified

13type mockClient struct{}
14
15func buildMockClient(logger log.Logger) (Client, error) {
16 level.Warn(logger).Log("msg", "created mockClient for testing only")
17 return mockClient{}, nil
18}
19
20func (m mockClient) List(_ context.Context, _ string) ([]string, error) {
21 return []string{}, nil

Callers 1

createClientFunction · 0.85

Calls 1

LogMethod · 0.45

Tested by

no test coverage detected