MCPcopy Create free account
hub / github.com/corestoreio/pkg / Error

Function Error

util/assert/assertions.go:1271–1281  ·  view source on GitHub ↗

Error asserts that a function returned an error (i.e. not `nil`). actualObj, err := SomeFunction() if assert.Error(t, err) { assert.Equal(t, expectedError, err) }

(t TestingT, err error, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

ErrorIsKindFunction · 0.70
EqualErrorFunction · 0.70

Calls 2

FailFunction · 0.85
HelperMethod · 0.80

Tested by

no test coverage detected