MCPcopy
hub / github.com/stretchr/testify / Fail

Method Fail

require/require_forward.go:419–424  ·  view source on GitHub ↗

Fail reports a failure through

(failureMessage string, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

417
418// Fail reports a failure through
419func (a *Assertions) Fail(failureMessage string, msgAndArgs ...interface{}) {
420 if h, ok := a.t.(tHelper); ok {
421 h.Helper()
422 }
423 Fail(a.t, failureMessage, msgAndArgs...)
424}
425
426// FailNow fails test
427func (a *Assertions) FailNow(failureMessage string, msgAndArgs ...interface{}) {

Callers 1

Calls 2

FailFunction · 0.70
HelperMethod · 0.65

Tested by 1