Description

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

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

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

NotPanics is referenced in 110 repositories

github.com/stretchr/testify github.com/skycoin/skycoin github.com/skycoin/gnet

...