MCPcopy Create free account
hub / github.com/VividCortex/siesta / catchPanic

Function catchPanic

tree_test.go:215–222  ·  view source on GitHub ↗
(testFunc func())

Source from the content-addressed store, hash-verified

213}
214
215func catchPanic(testFunc func()) (recv interface{}) {
216 defer func() {
217 recv = recover()
218 }()
219
220 testFunc()
221 return
222}
223
224type testRoute struct {
225 path string

Callers 7

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