MCPcopy
hub / github.com/stretchr/testify / NotPanicsf

Method NotPanicsf

assert/assertion_forward.go:1362–1367  ·  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

1360//
1361// a.NotPanicsf(func(){ RemainCalm() }, "error message %s", "formatted")
1362func (a *Assertions) NotPanicsf(f PanicTestFunc, msg string, args ...interface{}) bool {
1363 if h, ok := a.t.(tHelper); ok {
1364 h.Helper()
1365 }
1366 return NotPanicsf(a.t, f, msg, args...)
1367}
1368
1369// NotRegexp asserts that a specified regexp does not match a string.
1370//

Callers

nothing calls this directly

Calls 2

NotPanicsfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected