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{})
| 1272 | // |
| 1273 | // a.NotPanicsf(func(){ RemainCalm() }, "error message %s", "formatted") |
| 1274 | func (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 | // |
nothing calls this directly
no test coverage detected