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

Function NotPanicsf

internal/testify/require/require.go:1615–1623  ·  view source on GitHub ↗

NotPanicsf asserts that the code inside the specified PanicTestFunc does NOT panic. assert.NotPanicsf(t, func(){ RemainCalm() }, "error message %s", "formatted")

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

Source from the content-addressed store, hash-verified

1613//
1614// assert.NotPanicsf(t, func(){ RemainCalm() }, "error message %s", "formatted")
1615func NotPanicsf(t TestingT, f assert.PanicTestFunc, msg string, args ...interface{}) {
1616 if h, ok := t.(tHelper); ok {
1617 h.Helper()
1618 }
1619 if assert.NotPanicsf(t, f, msg, args...) {
1620 return
1621 }
1622 t.FailNow()
1623}
1624
1625// NotRegexp asserts that a specified regexp does not match a string.
1626//

Callers 1

NotPanicsfMethod · 0.70

Calls 3

NotPanicsfFunction · 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…