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

Method fail

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

Source from the content-addressed store, hash-verified

24}
25
26func (fatal) fail(t *testing.T, msg string, msgAndArgs ...interface{}) {
27 t.Helper()
28 if len(msgAndArgs) > 0 {
29 msg = fmt.Sprintf(msg, msgAndArgs...)
30 }
31 t.Fatal(msg)
32}
33
34func (a nonfatal) Equal(t *testing.T, expected, actual interface{}, msgAndArgs ...interface{}) bool {
35 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

no outgoing calls

Tested by

no test coverage detected