MCPcopy Create free account
hub / github.com/stretchr/objx / fail

Method fail

std_assert_test.go:17–24  ·  view source on GitHub ↗
(t *testing.T, msg string, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

15var require fatal
16
17func (nonfatal) fail(t *testing.T, msg string, msgAndArgs ...interface{}) bool {
18 t.Helper()
19 if len(msgAndArgs) > 0 {
20 msg = fmt.Sprintf(msg, msgAndArgs...)
21 }
22 t.Error(msg)
23 return false
24}
25
26func (fatal) fail(t *testing.T, msg string, msgAndArgs ...interface{}) {
27 t.Helper()

Callers 11

EqualMethod · 0.95
NotEqualMethod · 0.95
NilMethod · 0.95
NotNilMethod · 0.95
TrueMethod · 0.95
FalseMethod · 0.95
NoErrorMethod · 0.95
ErrorMethod · 0.95
PanicsMethod · 0.95
EmptyMethod · 0.95
LenMethod · 0.95

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected