MCPcopy Create free account
hub / github.com/DataDog/jsonapi / Error

Function Error

internal/is/is.go:129–138  ·  view source on GitHub ↗

Error asserts that the given err is not nil.

(t *testing.T, err error)

Source from the content-addressed store, hash-verified

127
128// Error asserts that the given err is not nil.
129func Error(t *testing.T, err error) bool {
130 t.Helper()
131
132 if err == nil {
133 errorf(t, "an error", err)
134 return false
135 }
136
137 return true
138}
139
140// MustError requires that the given err is not nil.
141func MustError(t *testing.T, err error) {

Callers 1

MustErrorFunction · 0.70

Calls 1

errorfFunction · 0.85

Tested by

no test coverage detected