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

Function Fail

require/require.go:515–523  ·  require/require.go::Fail

Fail reports a failure through

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

Source from the content-addressed store, hash-verified

513
514// Fail reports a failure through
515func Fail(t TestingT, failureMessage string, msgAndArgs ...interface{}) {
516 if h, ok := t.(tHelper); ok {
517 h.Helper()
518 }
519 if assert.Fail(t, failureMessage, msgAndArgs...) {
520 return
521 }
522 t.FailNow()
523}
524
525// FailNow fails test
526func FailNow(t TestingT, failureMessage string, msgAndArgs ...interface{}) {

Callers 1

FailMethod · 0.70

Calls 3

FailFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected