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

Function PanicsWithError

util/assert/assertions.go:1025–1038  ·  view source on GitHub ↗

PanicsWithError asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value is an error that satisfies the EqualError comparison. assert.PanicsWithError(t, "crazy error", func(){ GoCrazy() })

(t TestingT, errString string, f PanicTestFunc, 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

didPanicFunction · 0.85
FailFunction · 0.85
HelperMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected