MCPcopy
hub / github.com/julienschmidt/httprouter / ServeHTTP

Method ServeHTTP

router_test.go:74–76  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

72}
73
74func (h handlerStruct) ServeHTTP(w http.ResponseWriter, r *http.Request) {
75 *h.handled = true
76}
77
78func TestRouterAPI(t *testing.T) {
79 var get, head, options, post, put, patch, delete, handler, handlerFunc bool

Callers 9

TestRouterFunction · 0.45
TestRouterAPIFunction · 0.45
TestRouterChainingFunction · 0.45
TestRouterOPTIONSFunction · 0.45
TestRouterNotAllowedFunction · 0.45
TestRouterNotFoundFunction · 0.45
TestRouterPanicHandlerFunction · 0.45
TestRouterServeFilesFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected