NotPanics asserts that the code inside the specified PanicTestFunc does NOT panic. a.NotPanics(func(){ RemainCalm() })
(f PanicTestFunc, msgAndArgs ...interface{})
| 1262 | // |
| 1263 | // a.NotPanics(func(){ RemainCalm() }) |
| 1264 | func (a *Assertions) NotPanics(f PanicTestFunc, msgAndArgs ...interface{}) bool { |
| 1265 | if h, ok := a.t.(tHelper); ok { |
| 1266 | h.Helper() |
| 1267 | } |
| 1268 | return NotPanics(a.t, f, msgAndArgs...) |
| 1269 | } |
| 1270 | |
| 1271 | // NotPanicsf asserts that the code inside the specified PanicTestFunc does NOT panic. |
| 1272 | // |