PanicTestFunc defines a func that should be passed to the assert.Panics and assert.NotPanics methods, and represents a simple func that takes no arguments, and returns nothing.
func()
| 1223 | // PanicTestFunc defines a func that should be passed to the assert.Panics and assert.NotPanics |
| 1224 | // methods, and represents a simple func that takes no arguments, and returns nothing. |
| 1225 | type PanicTestFunc func() |
| 1226 | |
| 1227 | // didPanic returns true if the function passed to it panics. Otherwise, it returns false. |
| 1228 | func didPanic(f PanicTestFunc) (didPanic bool, message interface{}, stack string) { |
nothing calls this directly
no outgoing calls
no test coverage detected