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

Function TestCreateDefaultRouter

gin_test.go:467–470  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

465}
466
467func TestCreateDefaultRouter(t *testing.T) {
468 router := Default()
469 assert.Len(t, router.Handlers, 2)
470}
471
472func TestNoRouteWithoutGlobalHandlers(t *testing.T) {
473 var middleware0 HandlerFunc = func(c *Context) {}

Callers

nothing calls this directly

Calls 1

DefaultFunction · 0.70

Tested by

no test coverage detected