PanicsWithError asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value is an error that satisfies the EqualError comparison. a.PanicsWithError("crazy error", func(){ GoCrazy() })
(errString string, f PanicTestFunc, msgAndArgs ...interface{})
| 1384 | // |
| 1385 | // a.PanicsWithError("crazy error", func(){ GoCrazy() }) |
| 1386 | func (a *Assertions) PanicsWithError(errString string, f PanicTestFunc, msgAndArgs ...interface{}) bool { |
| 1387 | if h, ok := a.t.(tHelper); ok { |
| 1388 | h.Helper() |
| 1389 | } |
| 1390 | return PanicsWithError(a.t, errString, f, msgAndArgs...) |
| 1391 | } |
| 1392 | |
| 1393 | // PanicsWithErrorf asserts that the code inside the specified PanicTestFunc |
| 1394 | // panics, and that the recovered panic value is an error that satisfies the |
nothing calls this directly
no test coverage detected