MCPcopy Create free account
hub / github.com/maruel/panicparse / panickingHandler

Function panickingHandler

stack/example_test.go:231–234  ·  view source on GitHub ↗

panickingHandler is an http.HandlerFunc that panics.

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

229
230// panickingHandler is an http.HandlerFunc that panics.
231func panickingHandler(w http.ResponseWriter, r *http.Request) {
232 w.Write([]byte("Done"))
233 panic("It happens")
234}
235
236func recoverPanic() {
237 if v := recover(); v != nil {

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…