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

Function PanicsWithValue

util/assert/assertions.go:1006–1018  ·  view source on GitHub ↗

PanicsWithValue asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value equals the expected panic value. assert.PanicsWithValue(t, "crazy error", func(){ GoCrazy() })

(t TestingT, expected interface{}, 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 3

didPanicFunction · 0.85
FailFunction · 0.85
HelperMethod · 0.80

Tested by

no test coverage detected