Panicsf asserts that the code inside the specified PanicTestFunc panics. assert.Panicsf(t, func(){ GoCrazy() }, "error message %s", "formatted")
(t TestingT, f PanicTestFunc, msg string, args ...interface{})
| 692 | // |
| 693 | // assert.Panicsf(t, func(){ GoCrazy() }, "error message %s", "formatted") |
| 694 | func Panicsf(t TestingT, f PanicTestFunc, msg string, args ...interface{}) bool { |
| 695 | if h, ok := t.(tHelper); ok { |
| 696 | h.Helper() |
| 697 | } |
| 698 | return Panics(t, f, append([]interface{}{msg}, args...)...) |
| 699 | } |
| 700 | |
| 701 | // PanicsWithErrorf asserts that the code inside the specified PanicTestFunc |
| 702 | // panics, and that the recovered panic value is an error that satisfies the |