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

Function TestRouter_Root

router_test.go:50–58  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

48}
49
50func TestRouter_Root(t *testing.T) {
51 r := newTestRouter()
52 insertRoute(r, "GET", "/")
53
54 _, _, found := r.Search("GET", "/")
55 if !found {
56 t.Fatal("expected to find root /")
57 }
58}
59
60func TestRouter_SingleParam(t *testing.T) {
61 r := newTestRouter()

Callers

nothing calls this directly

Calls 3

newTestRouterFunction · 0.85
insertRouteFunction · 0.85
SearchMethod · 0.80

Tested by

no test coverage detected