MCPcopy
hub / github.com/grafana/dskit / FailNow

Method FailNow

test/recoverable_t.go:40–43  ·  view source on GitHub ↗

FailNow marks the test as failed and panics with a sentinel value instead of calling runtime.Goexit.

()

Source from the content-addressed store, hash-verified

38// FailNow marks the test as failed and panics with a sentinel value instead of
39// calling runtime.Goexit.
40func (p *RecoverableT) FailNow() {
41 p.Fail()
42 panic(testFailure{})
43}
44
45// Fatal is equivalent to Log followed by FailNow.
46func (p *RecoverableT) Fatal(args ...any) {

Calls 1

FailMethod · 0.80