There's already common function types for the following assertion groups: * [`assert.BoolAssertionFunc`](https://pkg.go.dev/github.com/stretchr/testify/assert.BoolAssertionFunc) * [`assert.ComparisonAssertionFunc`](https://pkg.go.dev/github.com/stretchr/testify/assert.ComparisonAssertionFunc) * [`assert.ErrorAssertionFunc`](https://pkg.go.dev/github.com/stretchr/testify/assert.ErrorAssertionFunc) * [`assert.ValueAssertionFunc`](https://pkg.go.dev/github.com/stretchr/testify/assert.ValueAssertionFunc) These are very useful for doing table driven tests, but seems like there's no `PanicAssertionFunc`. It could look like this: ``` type PanicAssertionFunc func(t assert.TestingT, f assert.PanicTestFunc, msgAndArgs ...interface{}) bool ```
There's already common function types for the following assertion groups:
assert.BoolAssertionFuncassert.ComparisonAssertionFuncassert.ErrorAssertionFuncassert.ValueAssertionFuncThese are very useful for doing table driven tests, but seems like there's no
PanicAssertionFunc. It could look like this: