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

Function Failf

assert/assertion_format.go:215–220  ·  assert/assertion_format.go::Failf

Failf reports a failure through

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

Source from the content-addressed store, hash-verified

213
214// Failf reports a failure through
215func Failf(t TestingT, failureMessage string, msg string, args ...interface{}) bool {
216 if h, ok := t.(tHelper); ok {
217 h.Helper()
218 }
219 return Fail(t, failureMessage, append([]interface{}{msg}, args...)...)
220}
221
222// FailNowf fails test
223func FailNowf(t TestingT, failureMessage string, msg string, args ...interface{}) bool {

Callers 2

FailfFunction · 0.92
FailfMethod · 0.70

Calls 2

FailFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected