Documentation
¶
Overview ¶
Package client_mocks is a generated GoMock package.
Index ¶
- func NewRequestMatcher(opts ...RequestMatcherOption) gomock.Matcher
- type MockRoundTripper
- type MockRoundTripperMockRecorder
- type RequestMatcher
- type RequestMatcherOption
- func RequestBody(body interface{}) RequestMatcherOption
- func RequestHeader(key string, value string, values ...string) RequestMatcherOption
- func RequestMethod(method string) RequestMatcherOption
- func RequestPath(url string) RequestMatcherOption
- func RequestPathf(url string, args ...interface{}) RequestMatcherOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRequestMatcher ¶
func NewRequestMatcher(opts ...RequestMatcherOption) gomock.Matcher
Types ¶
type MockRoundTripper ¶
type MockRoundTripper struct {
// contains filtered or unexported fields
}
MockRoundTripper is a mock of RoundTripper interface.
func NewMockRoundTripper ¶
func NewMockRoundTripper(ctrl *gomock.Controller) *MockRoundTripper
NewMockRoundTripper creates a new mock instance.
func (*MockRoundTripper) EXPECT ¶
func (m *MockRoundTripper) EXPECT() *MockRoundTripperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRoundTripperMockRecorder ¶
type MockRoundTripperMockRecorder struct {
// contains filtered or unexported fields
}
MockRoundTripperMockRecorder is the mock recorder for MockRoundTripper.
type RequestMatcher ¶
type RequestMatcher struct {
// contains filtered or unexported fields
}
func (*RequestMatcher) Matches ¶
func (m *RequestMatcher) Matches(x interface{}) bool
func (*RequestMatcher) String ¶
func (m *RequestMatcher) String() string
type RequestMatcherOption ¶
type RequestMatcherOption interface {
// contains filtered or unexported methods
}
func RequestBody ¶
func RequestBody(body interface{}) RequestMatcherOption
func RequestHeader ¶
func RequestHeader(key string, value string, values ...string) RequestMatcherOption
func RequestMethod ¶
func RequestMethod(method string) RequestMatcherOption
func RequestPath ¶
func RequestPath(url string) RequestMatcherOption
func RequestPathf ¶
func RequestPathf(url string, args ...interface{}) RequestMatcherOption
Click to show internal directories.
Click to hide internal directories.