MCPcopy Create free account
hub / github.com/Shopify/goose / TestPrefixModule

Function TestPrefixModule

srvutil/servlet_test.go:95–101  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

93}
94
95func TestPrefixModule(t *testing.T) {
96 r := mux.NewRouter()
97 hm := HandlerServlet("/ok", h)
98 s := PrefixServlet(hm, "/foo")
99 s.RegisterRouting(r)
100 assert.HTTPBodyContains(t, r.ServeHTTP, "GET", "/foo/ok", nil, "great success")
101}
102
103type ctxKey int
104

Callers

nothing calls this directly

Calls 3

HandlerServletFunction · 0.85
PrefixServletFunction · 0.85
RegisterRoutingMethod · 0.65

Tested by

no test coverage detected