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

Function MustNoError

internal/is/is.go:120–126  ·  view source on GitHub ↗

MustNoError requires that the given err is nil.

(t *testing.T, err error)

Source from the content-addressed store, hash-verified

118
119// MustNoError requires that the given err is nil.
120func MustNoError(t *testing.T, err error) {
121 t.Helper()
122
123 if !NoError(t, err) {
124 t.Fatal()
125 }
126}
127
128// Error asserts that the given err is not nil.
129func Error(t *testing.T, err error) bool {

Callers 13

TestUnmarshalFunction · 0.92
TestUnmarshalMetaFunction · 0.92
TestMarshalFunction · 0.92
TestMarshalMetaFunction · 0.92
TestMarshalJSONAPIFunction · 0.92
TestMarshalLinksFunction · 0.92
TestMarshalFieldsFunction · 0.92
TestMarshalRelationshipsFunction · 0.92
TestMarshalClientModeFunction · 0.92

Calls 1

NoErrorFunction · 0.85

Tested by 12

TestUnmarshalFunction · 0.74
TestUnmarshalMetaFunction · 0.74
TestMarshalFunction · 0.74
TestMarshalMetaFunction · 0.74
TestMarshalJSONAPIFunction · 0.74
TestMarshalLinksFunction · 0.74
TestMarshalFieldsFunction · 0.74
TestMarshalRelationshipsFunction · 0.74
TestMarshalClientModeFunction · 0.74