Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForMock ¶
func CheckForMock(mocks RequestMocks, r *http.Request) http.HandlerFunc
CheckForMock Find the first request mock that's predicate matches the request, or nil if no match is found
Types ¶
type RequestHandlerPredicate ¶
type RequestMock ¶
type RequestMock struct {
// contains filtered or unexported fields
}
func CreateMock ¶
func CreateMock(predicate RequestHandlerPredicate, handler http.HandlerFunc) RequestMock
CreateMock Create a RequestMock
type RequestMocks ¶
type RequestMocks = []RequestMock
Click to show internal directories.
Click to hide internal directories.