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

Function SkipTestIfShortMode

client/pkg/testutil/testutil.go:91–98  ·  view source on GitHub ↗
(t TB, reason string)

Source from the content-addressed store, hash-verified

89}
90
91func SkipTestIfShortMode(t TB, reason string) {
92 if t != nil {
93 t.Helper()
94 if testing.Short() {
95 t.Skip(reason)
96 }
97 }
98}
99
100// ExitInShortMode closes the current process (with 0) if the short test mode detected.
101//

Callers 1

TestSampleFunction · 0.85

Calls 2

HelperMethod · 0.65
SkipMethod · 0.65

Tested by 1

TestSampleFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…