Description

NotPanics asserts that the code inside the specified PanicTestFunc does NOT panic.

a.NotPanics(func(){
  RemainCalm()
}, "Calling RemainCalm() should NOT panic")

Returns whether the assertion was successful (true) or not (false).

NotPanics is referenced in 11 repositories

github.com/stretchr/testify github.com/cyclopsci/apollo github.com/lmas/labassistant

...