MCPcopy Create free account
hub / github.com/zalando/skipper / checkRequest

Method checkRequest

routing/routing_test.go:95–101  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

93}
94
95func (tr *testRouting) checkRequest(req *http.Request) (*routing.Route, error) {
96 if r, _ := tr.routing.Route(req); r != nil {
97 return r, nil
98 }
99
100 return nil, errors.New("requested route not found")
101}
102
103func (tr *testRouting) checkGetRequest(url string) (*routing.Route, error) {
104 req, err := http.NewRequest("GET", url, nil)

Callers 4

checkGetRequestMethod · 0.95
TestTransportFunction · 0.80
TestProcessesPredicatesFunction · 0.80

Calls 2

RouteMethod · 0.80
NewMethod · 0.80

Tested by

no test coverage detected