MCPcopy Create free account
hub / github.com/stretchr/testify / PanicTestFunc

FuncType PanicTestFunc

assert/assertions.go:1225–1225  ·  view source on GitHub ↗

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()

Source from the content-addressed store, hash-verified

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.
1225type PanicTestFunc func()
1226
1227// didPanic returns true if the function passed to it panics. Otherwise, it returns false.
1228func didPanic(f PanicTestFunc) (didPanic bool, message interface{}, stack string) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected