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

Function FailNow

require/require.go:526–534  ·  require/require.go::FailNow

FailNow fails test

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

Source from the content-addressed store, hash-verified

524
525// FailNow fails test
526func FailNow(t TestingT, failureMessage string, msgAndArgs ...interface{}) {
527 if h, ok := t.(tHelper); ok {
528 h.Helper()
529 }
530 if assert.FailNow(t, failureMessage, msgAndArgs...) {
531 return
532 }
533 t.FailNow()
534}
535
536// FailNowf fails test
537func FailNowf(t TestingT, failureMessage string, msg string, args ...interface{}) {

Callers 1

FailNowMethod · 0.70

Calls 3

FailNowFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected