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{})
| 681 | // |
| 682 | // assert.NotPanicsf(t, func(){ RemainCalm() }, "error message %s", "formatted") |
| 683 | func NotPanicsf(t TestingT, f PanicTestFunc, msg string, args ...interface{}) bool { |
| 684 | if h, ok := t.(tHelper); ok { |
| 685 | h.Helper() |
| 686 | } |
| 687 | return NotPanics(t, f, append([]interface{}{msg}, args...)...) |
| 688 | } |
| 689 | |
| 690 | // NotRegexpf asserts that a specified regexp does not match a string. |
| 691 | // |
no test coverage detected
searching dependent graphs…