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

Function forUnitTestsRunInMockedContext

client/v3/main_test.go:31–37  ·  view source on GitHub ↗
(mocking func(), _example func())

Source from the content-addressed store, hash-verified

29func exampleEndpoints() []string { return nil }
30
31func forUnitTestsRunInMockedContext(mocking func(), _example func()) {
32 mocking()
33 // TODO: Call 'example' when mocking() provides realistic mocking of transport.
34
35 // The real testing logic of examples gets executed
36 // as part of ./tests/integration/clientv3/integration/...
37}
38
39func TestMain(m *testing.M) {
40 testutil.MustTestMainWithLeakDetection(m)

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…