NotPanicsf asserts that the code inside the specified PanicTestFunc does NOT panic. assert.NotPanicsf(t, func(){ RemainCalm() }, "error message %s", "formatted")
(t TestingT, f assert.PanicTestFunc, msg string, args ...interface{})
| 1613 | // |
| 1614 | // assert.NotPanicsf(t, func(){ RemainCalm() }, "error message %s", "formatted") |
| 1615 | func NotPanicsf(t TestingT, f assert.PanicTestFunc, msg string, args ...interface{}) { |
| 1616 | if h, ok := t.(tHelper); ok { |
| 1617 | h.Helper() |
| 1618 | } |
| 1619 | if assert.NotPanicsf(t, f, msg, args...) { |
| 1620 | return |
| 1621 | } |
| 1622 | t.FailNow() |
| 1623 | } |
| 1624 | |
| 1625 | // NotRegexp asserts that a specified regexp does not match a string. |
| 1626 | // |
no test coverage detected
searching dependent graphs…