(fun ReqMatcher, statusCode int, headers map[string]string, body []byte)
| 49 | } |
| 50 | |
| 51 | func mockResponse(fun ReqMatcher, statusCode int, headers map[string]string, body []byte) { |
| 52 | mockedResponses = append(mockedResponses, FunResponsePair{matcher: fun, response: mockhttp.NewResponseMock(statusCode, headers, body)}) |
| 53 | } |
| 54 | |
| 55 | func regexMatcher(expr string) ReqMatcher { |
| 56 | return func(r *http.Request) bool { |
no outgoing calls
no test coverage detected