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

Function Panicsf

internal/testify/require/require.go:1813–1821  ·  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 assert.PanicTestFunc, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

1811//
1812// assert.Panicsf(t, func(){ GoCrazy() }, "error message %s", "formatted")
1813func Panicsf(t TestingT, f assert.PanicTestFunc, msg string, args ...interface{}) {
1814 if h, ok := t.(tHelper); ok {
1815 h.Helper()
1816 }
1817 if assert.Panicsf(t, f, msg, args...) {
1818 return
1819 }
1820 t.FailNow()
1821}
1822
1823// Positive asserts that the specified element is positive
1824//

Callers 1

PanicsfMethod · 0.70

Calls 3

PanicsfFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…