PanicsWithValue asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value equals the expected panic value. a.PanicsWithValue("crazy error", func(){ GoCrazy() })
(expected interface{}, f PanicTestFunc, msgAndArgs ...interface{})
| 1459 | // |
| 1460 | // a.PanicsWithValue("crazy error", func(){ GoCrazy() }) |
| 1461 | func (a *Assertions) PanicsWithValue(expected interface{}, f PanicTestFunc, msgAndArgs ...interface{}) bool { |
| 1462 | if h, ok := a.t.(tHelper); ok { |
| 1463 | h.Helper() |
| 1464 | } |
| 1465 | return PanicsWithValue(a.t, expected, f, msgAndArgs...) |
| 1466 | } |
| 1467 | |
| 1468 | // PanicsWithValuef asserts that the code inside the specified PanicTestFunc panics, and that |
| 1469 | // the recovered panic value equals the expected panic value. |
nothing calls this directly
no test coverage detected