MCPcopy
hub / github.com/go-chi/chi / TestMuxMatch_DoesNotHaveBasePath

Function TestMuxMatch_DoesNotHaveBasePath

mux_test.go:1860–1869  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1858}
1859
1860func TestMuxMatch_DoesNotHaveBasePath(t *testing.T) {
1861 r := NewRouter()
1862
1863 tctx := NewRouteContext()
1864
1865 tctx.Reset()
1866 if r.Match(tctx, "GET", "/") != false {
1867 t.Fatal("not expecting to find match for route:", "GET", "/")
1868 }
1869}
1870
1871func TestMuxFind(t *testing.T) {
1872 r := NewRouter()

Callers

nothing calls this directly

Calls 4

NewRouterFunction · 0.85
NewRouteContextFunction · 0.85
ResetMethod · 0.65
MatchMethod · 0.65

Tested by

no test coverage detected