(expr string)
| 53 | } |
| 54 | |
| 55 | func regexMatcher(expr string) ReqMatcher { |
| 56 | return func(r *http.Request) bool { |
| 57 | matches, _ := regexp.Match(expr, []byte(r.URL.String())) |
| 58 | return matches |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | func urlEquals(value string) ReqMatcher { |
| 63 | return func(r *http.Request) bool { |
no outgoing calls
no test coverage detected