MCPcopy
hub / github.com/gin-gonic/gin / catchPanic

Function catchPanic

tree_test.go:362–369  ·  view source on GitHub ↗
(testFunc func())

Source from the content-addressed store, hash-verified

360}
361
362func catchPanic(testFunc func()) (recv any) {
363 defer func() {
364 recv = recover()
365 }()
366
367 testFunc()
368 return
369}
370
371type testRoute struct {
372 path string

Calls

no outgoing calls

Tested by

no test coverage detected