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

Function FailNowf

require/require.go:537–545  ·  view source on GitHub ↗

FailNowf fails test

(t TestingT, failureMessage string, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

535
536// FailNowf fails test
537func FailNowf(t TestingT, failureMessage string, msg string, args ...interface{}) {
538 if h, ok := t.(tHelper); ok {
539 h.Helper()
540 }
541 if assert.FailNowf(t, failureMessage, msg, args...) {
542 return
543 }
544 t.FailNow()
545}
546
547// Failf reports a failure through
548func Failf(t TestingT, failureMessage string, msg string, args ...interface{}) {

Callers 1

FailNowfMethod · 0.70

Calls 3

FailNowfFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected