NotPanics asserts that the code inside the specified PanicTestFunc does NOT panic. assert.NotPanics(t, func(){ RemainCalm() })
(t TestingT, f assert.PanicTestFunc, msgAndArgs ...interface{})
| 1600 | // |
| 1601 | // assert.NotPanics(t, func(){ RemainCalm() }) |
| 1602 | func NotPanics(t TestingT, f assert.PanicTestFunc, msgAndArgs ...interface{}) { |
| 1603 | if h, ok := t.(tHelper); ok { |
| 1604 | h.Helper() |
| 1605 | } |
| 1606 | if assert.NotPanics(t, f, msgAndArgs...) { |
| 1607 | return |
| 1608 | } |
| 1609 | t.FailNow() |
| 1610 | } |
| 1611 | |
| 1612 | // NotPanicsf asserts that the code inside the specified PanicTestFunc does NOT panic. |
| 1613 | // |
searching dependent graphs…