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

Method Error

std_assert_test.go:154–159  ·  view source on GitHub ↗
(t *testing.T, err error, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

152 return true
153}
154func (a fatal) Error(t *testing.T, err error, msgAndArgs ...interface{}) {
155 t.Helper()
156 if err == nil {
157 a.fail(t, "expected error, got nil")
158 }
159}
160
161func (a nonfatal) Panics(t *testing.T, f func(), msgAndArgs ...interface{}) bool {
162 t.Helper()

Callers 15

JSONMethod · 0.45
MustJSONMethod · 0.45
MustBase64Method · 0.45
MustSignedBase64Method · 0.45
failMethod · 0.45
MustFromJSONFunction · 0.45
MustFromJSONSliceFunction · 0.45
MustFromBase64Function · 0.45
MustFromSignedBase64Function · 0.45
MustFromURLQueryFunction · 0.45

Calls 1

failMethod · 0.95

Tested by

no test coverage detected