Atlas › Test

FailNow

Exact test identity: go.temporal.io/server/common/testing/await/TestT_CollectsAssertionFailures/FailNow

Package
go.temporal.io/server/common/testing/await
Suite / test hierarchy
TestT_CollectsAssertionFailures/FailNow
Test
FailNow
Introduced at
t.go ×1 Frontier kind: Joint frontier
Covered ranges
3
Covered lines
9
Covered files
1

Covered source

Expand a file to inspect source; the > gutter marks covered lines.

go.temporal.io/server/common/testing/await/t.go 9 covered LOC · 3 ranges

Open complete file

47
48 // Fail marks the current attempt as failed without stopping it.
49 > func (t *T) Fail() { t.go
50 > t.failed = true
51 > }
52
53 // Error records an error message for reporting on timeout.
65 // FailNow is called by require.* on failure. It stops the current attempt.
66 // Unlike testing.TB.FailNow(), this does NOT mark the test as failed.
67 > func (t *T) FailNow() { t.go
68 > t.Fail()
69 > panic(attemptFailed{})
70 }
71
83
84 // Failed reports whether this attempt has failed.
85 > func (t *T) Failed() bool { t.go
86 > return t.failed
87 > }
88
89 // Helper marks the calling function as a test helper.