MCPcopy Index your code
hub / github.com/tailscale/tailscale / InTest

Function InTest

util/testenv/testenv.go:18–22  ·  view source on GitHub ↗

InTest reports whether the current binary is a test binary.

()

Source from the content-addressed store, hash-verified

16
17// InTest reports whether the current binary is a test binary.
18func InTest() bool {
19 return lazyInTest.Get(func() bool {
20 return flag.Lookup("test.v") != nil
21 })
22}
23
24// TB is testing.TB, to avoid importing "testing" in non-test code.
25type TB interface {

Callers 15

NewMethod · 0.92
NewMethod · 0.92
startLoggerMethod · 0.92
NewDirectFunction · 0.92
NewUserspaceEngineFunction · 0.92
maybeSetNearestDERPMethod · 0.92
networkDownMethod · 0.92
devPanicfFunction · 0.92
presentRiskToUserFunction · 0.92
noDupFlagifyFunction · 0.92
reloadConfigMethod · 0.92
RegisterTestDoHEndpointFunction · 0.92

Calls 2

LookupMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…