MCPcopy Create free account
hub / github.com/OpenPrinting/goipp / assertNoError

Function assertNoError

encdec_test.go:61–65  ·  view source on GitHub ↗

Check that err == nil

(t *testing.T, err error)

Source from the content-addressed store, hash-verified

59
60// Check that err == nil
61func assertNoError(t *testing.T, err error) {
62 if err != nil {
63 t.Errorf("%s", err)
64 }
65}
66
67// Check that err != nil
68func assertWithError(t *testing.T, err error) {

Callers 5

TestEncodeDecodeFunction · 0.85
TestEncodeErrorsFunction · 0.85
TestDecodeErrorsFunction · 0.85
TestTagExtensionFunction · 0.85
testDecodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected