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