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

Function assertWithError

encdec_test.go:68–72  ·  view source on GitHub ↗

Check that err != nil

(t *testing.T, err error)

Source from the content-addressed store, hash-verified

66
67// Check that err != nil
68func assertWithError(t *testing.T, err error) {
69 if err == nil {
70 t.Errorf("Error expected")
71 }
72}
73
74// Check that err != nil and contains expected test
75func assertErrorIs(t *testing.T, err error, s string) {

Callers 1

testDecodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected