MCPcopy
hub / github.com/expr-lang/expr / Fail

Function Fail

internal/testify/require/require.go:502–510  ·  view source on GitHub ↗

Fail reports a failure through

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

Source from the content-addressed store, hash-verified

500
501// Fail reports a failure through
502func Fail(t TestingT, failureMessage string, msgAndArgs ...interface{}) {
503 if h, ok := t.(tHelper); ok {
504 h.Helper()
505 }
506 if assert.Fail(t, failureMessage, msgAndArgs...) {
507 return
508 }
509 t.FailNow()
510}
511
512// FailNow fails test
513func FailNow(t TestingT, failureMessage string, msgAndArgs ...interface{}) {

Callers 1

FailMethod · 0.70

Calls 3

FailFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…