MCPcopy
hub / github.com/etcd-io/etcd / NewClient

Function NewClient

client/v3/client_test.go:39–45  ·  view source on GitHub ↗
(t *testing.T, cfg Config)

Source from the content-addressed store, hash-verified

37)
38
39func NewClient(t *testing.T, cfg Config) (*Client, error) {
40 t.Helper()
41 if cfg.Logger == nil {
42 cfg.Logger = zaptest.NewLogger(t).Named("client")
43 }
44 return New(cfg)
45}
46
47func TestDialCancel(t *testing.T) {
48 testutil.RegisterLeakDetection(t)

Callers 8

TestDialCancelFunction · 0.70
TestDialTimeoutFunction · 0.70
TestDialNoTimeoutFunction · 0.70
TestMaxUnaryRetriesFunction · 0.70
TestBackoffFunction · 0.70
TestSyncFiltersMembersFunction · 0.70

Calls 2

NewFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…