MCPcopy Create free account
hub / github.com/BryanMwangi/pine / newTestRouter

Function newTestRouter

router_test.go:14–14  ·  view source on GitHub ↗

--------------------------------------------------------------------------- Helpers ---------------------------------------------------------------------------

()

Source from the content-addressed store, hash-verified

12// ---------------------------------------------------------------------------
13
14func newTestRouter() *Router { return newRouter() }
15
16func insertRoute(r *Router, method, path string) {
17 r.Insert(method, path, []Handler{func(c *Ctx) error { return nil }})

Calls 1

newRouterFunction · 0.85

Tested by

no test coverage detected