MCPcopy Index your code
hub / github.com/expr-lang/expr / PanicsWithValuef

Function PanicsWithValuef

internal/testify/assert/assertion_format.go:717–722  ·  view source on GitHub ↗

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

(t TestingT, expected interface{}, f PanicTestFunc, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

715//
716// assert.PanicsWithValuef(t, "crazy error", func(){ GoCrazy() }, "error message %s", "formatted")
717func PanicsWithValuef(t TestingT, expected interface{}, f PanicTestFunc, msg string, args ...interface{}) bool {
718 if h, ok := t.(tHelper); ok {
719 h.Helper()
720 }
721 return PanicsWithValue(t, expected, f, append([]interface{}{msg}, args...)...)
722}
723
724// Positivef asserts that the specified element is positive
725//

Callers 2

PanicsWithValuefFunction · 0.92
PanicsWithValuefMethod · 0.70

Calls 2

PanicsWithValueFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…