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

Function BeforeTestExternal

tests/framework/integration/testing.go:82–84  ·  view source on GitHub ↗

BeforeTestExternal initializes test context and is targeted for external APIs. In general the `integration` package is not targeted to be used outside of etcd project, but till the dedicated package is developed, this is the best entry point so far (without backward compatibility promise).

(t testutil.TB)

Source from the content-addressed store, hash-verified

80// etcd project, but till the dedicated package is developed, this is
81// the best entry point so far (without backward compatibility promise).
82func BeforeTestExternal(t testutil.TB) {
83 BeforeTest(t, WithoutSkipInShort(), WithoutGoLeakDetection())
84}
85
86func BeforeTest(t testutil.TB, opts ...TestOption) {
87 t.Helper()

Callers

nothing calls this directly

Calls 3

WithoutSkipInShortFunction · 0.85
WithoutGoLeakDetectionFunction · 0.85
BeforeTestFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…