MCPcopy Index your code
hub / github.com/coder/coder / fakeT

Struct fakeT

testutil/retry.go:94–102  ·  view source on GitHub ↗

fakeT is a fake implementation of testing.TB that never fails and only logs errors. Fatal errors will cause the goroutine to exit without failing the test. The behavior of the fake implementation should be as close as possible to the real implementation from the test function's perspective (minus i

Source from the content-addressed store, hash-verified

92// the real implementation from the test function's perspective (minus
93// intentionally unimplemented methods).
94type fakeT struct {
95 *testing.T
96 ctx context.Context
97 name string
98
99 mu sync.Mutex
100 failed bool
101 cleanupFns []func()
102}
103
104var _ testing.TB = &fakeT{}
105

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected