NotPanicsf asserts that the code inside the specified PanicTestFunc does NOT panic. assert.NotPanicsf(t, func(){ RemainCalm() }, "error message %s", "formatted")
(t TestingT, f PanicTestFunc, msg string, args ...interface{})
| 637 | // |
| 638 | // assert.NotPanicsf(t, func(){ RemainCalm() }, "error message %s", "formatted") |
| 639 | func NotPanicsf(t TestingT, f PanicTestFunc, msg string, args ...interface{}) bool { |
| 640 | if h, ok := t.(tHelper); ok { |
| 641 | h.Helper() |
| 642 | } |
| 643 | return NotPanics(t, f, append([]interface{}{msg}, args...)...) |
| 644 | } |
| 645 | |
| 646 | // NotRegexpf asserts that a specified regexp does not match a string. |
| 647 | // |
no test coverage detected
searching dependent graphs…