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

Function fakeHandler

tree_test.go:29–33  ·  view source on GitHub ↗
(val string)

Source from the content-addressed store, hash-verified

27var fakeHandlerValue string
28
29func fakeHandler(val string) Handle {
30 return func(http.ResponseWriter, *http.Request, Params) {
31 fakeHandlerValue = val
32 }
33}
34
35type testRequests []struct {
36 path string

Callers 9

TestTreeAddAndGetFunction · 0.85
TestTreeWildcardFunction · 0.85
TestTreeDupliatePathFunction · 0.85
TestTreeCatchMaxParamsFunction · 0.85
TestTreeInvalidNodeTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected