MCPcopy Create free account
hub / github.com/expr-lang/expr / NotPanicsf

Method NotPanicsf

internal/testify/assert/assertion_forward.go:1274–1279  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1272//
1273// a.NotPanicsf(func(){ RemainCalm() }, "error message %s", "formatted")
1274func (a *Assertions) NotPanicsf(f PanicTestFunc, msg string, args ...interface{}) bool {
1275 if h, ok := a.t.(tHelper); ok {
1276 h.Helper()
1277 }
1278 return NotPanicsf(a.t, f, msg, args...)
1279}
1280
1281// NotRegexp asserts that a specified regexp does not match a string.
1282//

Callers

nothing calls this directly

Calls 2

NotPanicsfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected