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

Function BenchmarkRecoveryMiddleware

benchmarks_test.go:20–25  ·  view source on GitHub ↗
(B *testing.B)

Source from the content-addressed store, hash-verified

18}
19
20func BenchmarkRecoveryMiddleware(B *testing.B) {
21 router := New()
22 router.Use(Recovery())
23 router.GET("/", func(c *Context) {})
24 runRequest(B, router, http.MethodGet, "/")
25}
26
27func BenchmarkLoggerMiddleware(B *testing.B) {
28 router := New()

Callers

nothing calls this directly

Calls 5

NewFunction · 0.85
RecoveryFunction · 0.85
runRequestFunction · 0.85
UseMethod · 0.65
GETMethod · 0.65

Tested by

no test coverage detected