panickingHandler is an http.HandlerFunc that panics.
(w http.ResponseWriter, r *http.Request)
| 229 | |
| 230 | // panickingHandler is an http.HandlerFunc that panics. |
| 231 | func panickingHandler(w http.ResponseWriter, r *http.Request) { |
| 232 | w.Write([]byte("Done")) |
| 233 | panic("It happens") |
| 234 | } |
| 235 | |
| 236 | func recoverPanic() { |
| 237 | if v := recover(); v != nil { |
nothing calls this directly
no test coverage detected
searching dependent graphs…