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

Function MustError

internal/is/is.go:141–147  ·  view source on GitHub ↗

MustError requires that the given err is not nil.

(t *testing.T, err error)

Source from the content-addressed store, hash-verified

139
140// MustError requires that the given err is not nil.
141func MustError(t *testing.T, err error) {
142 t.Helper()
143
144 if !Error(t, err) {
145 t.Fatal()
146 }
147}
148
149// EqualJSON asserts that the given strings are equal after unmarshaling as json.
150func EqualJSON(t *testing.T, expected, actual string) bool {

Callers

nothing calls this directly

Calls 1

ErrorFunction · 0.70

Tested by

no test coverage detected