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

Method Fail

testutil/retry.go:155–161  ·  view source on GitHub ↗

Fail implements testing.TB. Fail marks the function as having failed but continues execution.

()

Source from the content-addressed store, hash-verified

153// Fail implements testing.TB. Fail marks the function as having failed but
154// continues execution.
155func (t *fakeT) Fail() {
156 t.T.Helper()
157 t.mu.Lock()
158 defer t.mu.Unlock()
159 t.failed = true
160 t.T.Log("testutil.RunRetry: t.Fail called in testutil.RunRetry closure")
161}
162
163// FailNow implements testing.TB. FailNow marks the function as having failed
164// and stops its execution by calling runtime.Goexit (which then runs all the

Callers 15

ErrorMethod · 0.95
ErrorfMethod · 0.95
TryReceiveFunction · 0.45
RequireReceiveFunction · 0.45
RequireSendFunction · 0.45
SoftTryReceiveFunction · 0.45
AssertReceiveFunction · 0.45
AssertSendFunction · 0.45
Test_removeMainlineBlurbFunction · 0.45
Test_addStableSinceFunction · 0.45
setOpenAIProviderBaseURLFunction · 0.45
TestCreateZipFromTarFunction · 0.45

Calls 4

LogMethod · 0.80
HelperMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45

Tested by 9

Test_removeMainlineBlurbFunction · 0.36
Test_addStableSinceFunction · 0.36
setOpenAIProviderBaseURLFunction · 0.36
TestCreateZipFromTarFunction · 0.36
assertExtractedFilesFunction · 0.36
testSessionOutputFunction · 0.36
TestEnvFunction · 0.36
TestAPIFunction · 0.36
TestNoopWatcherFunction · 0.36