Description

Panics asserts that the code inside the specified PanicTestFunc panics.

assert.Panics(func(){
  GoCrazy()
}, "Calling GoCrazy() should panic")

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

Panics is referenced in 0 repositories