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

Function TestHandlerModule

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

Source from the content-addressed store, hash-verified

86}
87
88func TestHandlerModule(t *testing.T) {
89 r := mux.NewRouter()
90 s := HandlerServlet("/ok", h)
91 s.RegisterRouting(r)
92 assert.HTTPBodyContains(t, r.ServeHTTP, "GET", "/ok", nil, "great success")
93}
94
95func TestPrefixModule(t *testing.T) {
96 r := mux.NewRouter()

Callers

nothing calls this directly

Calls 2

HandlerServletFunction · 0.85
RegisterRoutingMethod · 0.65

Tested by

no test coverage detected