MCPcopy
hub / github.com/vouch/vouch-proxy / mockResponse

Function mockResponse

pkg/providers/github/github_test.go:51–53  ·  view source on GitHub ↗
(fun ReqMatcher, statusCode int, headers map[string]string, body []byte)

Source from the content-addressed store, hash-verified

49}
50
51func 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
55func regexMatcher(expr string) ReqMatcher {
56 return func(r *http.Request) bool {

Calls

no outgoing calls

Tested by

no test coverage detected