Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTP ¶
HTTP is an autogenerated mock type for the HTTP type
func NewHTTP ¶
func NewHTTP(t mockConstructorTestingTNewHTTP) *HTTP
NewHTTP creates a new instance of HTTP. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*HTTP) EXPECT ¶
func (_m *HTTP) EXPECT() *HTTP_Expecter
type HTTP_Expecter ¶
type HTTP_Expecter struct {
// contains filtered or unexported fields
}
func (*HTTP_Expecter) Get ¶
func (_e *HTTP_Expecter) Get(ctx interface{}, path interface{}, query interface{}, headers interface{}) *HTTP_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- path string
- query url.Values
- headers http.Header
type HTTP_Get_Call ¶
HTTP_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*HTTP_Get_Call) Return ¶
func (_c *HTTP_Get_Call) Return(_a0 *http.Response, _a1 error) *HTTP_Get_Call
func (*HTTP_Get_Call) Run ¶
func (_c *HTTP_Get_Call) Run(run func(ctx context.Context, path string, query url.Values, headers http.Header)) *HTTP_Get_Call
func (*HTTP_Get_Call) RunAndReturn ¶
Click to show internal directories.
Click to hide internal directories.