(req *http.Request)
| 93 | } |
| 94 | |
| 95 | func (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 | |
| 103 | func (tr *testRouting) checkGetRequest(url string) (*routing.Route, error) { |
| 104 | req, err := http.NewRequest("GET", url, nil) |
no test coverage detected