PanicsWithValuef asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value equals the expected panic value. assert.PanicsWithValuef(t, "crazy error", func(){ GoCrazy() }, "error message %s", "formatted")
(t TestingT, expected interface{}, f PanicTestFunc, msg string, args ...interface{})
| 741 | // |
| 742 | // assert.PanicsWithValuef(t, "crazy error", func(){ GoCrazy() }, "error message %s", "formatted") |
| 743 | func PanicsWithValuef(t TestingT, expected interface{}, f PanicTestFunc, msg string, args ...interface{}) bool { |
| 744 | if h, ok := t.(tHelper); ok { |
| 745 | h.Helper() |
| 746 | } |
| 747 | return PanicsWithValue(t, expected, f, append([]interface{}{msg}, args...)...) |
| 748 | } |
| 749 | |
| 750 | // Positivef asserts that the specified element is positive |
| 751 | // |
no test coverage detected