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

Function TestRouterGroupPipeline

routergroup_test.go:170–176  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

168}
169
170func TestRouterGroupPipeline(t *testing.T) {
171 router := New()
172 testRoutesInterface(t, router)
173
174 v1 := router.Group("/v1")
175 testRoutesInterface(t, v1)
176}
177
178func testRoutesInterface(t *testing.T, r IRoutes) {
179 handler := func(c *Context) {}

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
testRoutesInterfaceFunction · 0.85
GroupMethod · 0.65

Tested by

no test coverage detected