NotPanics asserts that the code inside the specified PanicTestFunc does NOT panic. a.NotPanics(func(){ RemainCalm() })
(f assert.PanicTestFunc, msgAndArgs ...interface{})
| 1351 | // |
| 1352 | // a.NotPanics(func(){ RemainCalm() }) |
| 1353 | func (a *Assertions) NotPanics(f assert.PanicTestFunc, msgAndArgs ...interface{}) { |
| 1354 | if h, ok := a.t.(tHelper); ok { |
| 1355 | h.Helper() |
| 1356 | } |
| 1357 | NotPanics(a.t, f, msgAndArgs...) |
| 1358 | } |
| 1359 | |
| 1360 | // NotPanicsf asserts that the code inside the specified PanicTestFunc does NOT panic. |
| 1361 | // |