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

Method Do

kv/etcd/mock.go:228–232  ·  view source on GitHub ↗

Do implements the Clientv3Facade interface

(_ context.Context, op clientv3.Op)

Source from the content-addressed store, hash-verified

226
227// Do implements the Clientv3Facade interface
228func (m *mockKV) Do(_ context.Context, op clientv3.Op) (clientv3.OpResponse, error) {
229 m.valuesMtx.Lock()
230 defer m.valuesMtx.Unlock()
231 return m.doInternal(op)
232}
233
234func (m *mockKV) doInternal(op clientv3.Op) (clientv3.OpResponse, error) {
235 if op.IsGet() {

Callers 15

GetMethod · 0.95
DeleteMethod · 0.95
PutMethod · 0.95
createClientFunction · 0.45
CommitMethod · 0.45
GetMemberlistKVMethod · 0.45
getLocalhostAddrsFunction · 0.45
CloseMethod · 0.45
TestTimeoutMiddlewareFunction · 0.45
CloseMethod · 0.45

Calls 1

doInternalMethod · 0.95

Tested by 11

getLocalhostAddrsFunction · 0.36
TestTimeoutMiddlewareFunction · 0.36
TestDefaultAddressesFunction · 0.36
TestMiddlewareLoggingFunction · 0.36
TestLogSourceIPsFunction · 0.36
TestOTelTracingFunction · 0.36
TestHTTPGRPCTracingFunction · 0.36