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

Function EqualError

util/assert/assertions.go:1303–1319  ·  view source on GitHub ↗

EqualError asserts that a function returned an error (i.e. not `nil`) and that it is equal to the provided error. actualObj, err := SomeFunction() assert.EqualError(t, err, expectedErrorString)

(t TestingT, theError error, errString string, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

FailFunction · 0.85
HelperMethod · 0.80
ErrorFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected