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

Function insertRoute

router_test.go:16–18  ·  view source on GitHub ↗
(r *Router, method, path string)

Source from the content-addressed store, hash-verified

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 }})
18}
19
20// ---------------------------------------------------------------------------
21// Correctness — Insert + Search

Calls 1

InsertMethod · 0.80

Tested by

no test coverage detected