MCPcopy
hub / github.com/julienschmidt/httprouter / catchPanic

Function catchPanic

tree_test.go:202–209  ·  view source on GitHub ↗
(testFunc func())

Source from the content-addressed store, hash-verified

200}
201
202func catchPanic(testFunc func()) (recv interface{}) {
203 defer func() {
204 recv = recover()
205 }()
206
207 testFunc()
208 return
209}
210
211type testRoute struct {
212 path string

Callers 11

TestRouterRootFunction · 0.85
TestRouterServeFilesFunction · 0.85
testRoutesFunction · 0.85
TestTreeDupliatePathFunction · 0.85
TestEmptyWildcardNameFunction · 0.85
TestTreeDoubleWildcardFunction · 0.85
TestTreeInvalidNodeTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected