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

Function Panicsf

internal/testify/assert/assertion_format.go:694–699  ·  view source on GitHub ↗

Panicsf asserts that the code inside the specified PanicTestFunc panics. assert.Panicsf(t, func(){ GoCrazy() }, "error message %s", "formatted")

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

Source from the content-addressed store, hash-verified

692//
693// assert.Panicsf(t, func(){ GoCrazy() }, "error message %s", "formatted")
694func Panicsf(t TestingT, f PanicTestFunc, msg string, args ...interface{}) bool {
695 if h, ok := t.(tHelper); ok {
696 h.Helper()
697 }
698 return Panics(t, f, append([]interface{}{msg}, args...)...)
699}
700
701// PanicsWithErrorf asserts that the code inside the specified PanicTestFunc
702// panics, and that the recovered panic value is an error that satisfies the

Callers 2

PanicsfFunction · 0.92
PanicsfMethod · 0.70

Calls 2

PanicsFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…