mock

package
v1.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockHTTPClient

type MockHTTPClient struct {
	// contains filtered or unexported fields
}

MockHTTPClient is a mock of HTTPClient interface.

func NewMockHTTPClient

func NewMockHTTPClient(ctrl *gomock.Controller) *MockHTTPClient

NewMockHTTPClient creates a new mock instance.

func (*MockHTTPClient) Do

func (m *MockHTTPClient) Do(ctx context.Context, method, reqURL string, body []byte, options ...wx.HTTPOption) (*http.Response, error)

Do mocks base method.

func (*MockHTTPClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHTTPClient) Upload

func (m *MockHTTPClient) Upload(ctx context.Context, reqURL string, form wx.UploadForm, options ...wx.HTTPOption) (*http.Response, error)

Upload mocks base method.

type MockHTTPClientMockRecorder

type MockHTTPClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockHTTPClientMockRecorder is the mock recorder for MockHTTPClient.

func (*MockHTTPClientMockRecorder) Do

func (mr *MockHTTPClientMockRecorder) Do(ctx, method, reqURL, body interface{}, options ...interface{}) *gomock.Call

Do indicates an expected call of Do.

func (*MockHTTPClientMockRecorder) Upload

func (mr *MockHTTPClientMockRecorder) Upload(ctx, reqURL, form interface{}, options ...interface{}) *gomock.Call

Upload indicates an expected call of Upload.

type MockUploadForm

type MockUploadForm struct {
	// contains filtered or unexported fields
}

MockUploadForm is a mock of UploadForm interface.

func NewMockUploadForm

func NewMockUploadForm(ctrl *gomock.Controller) *MockUploadForm

NewMockUploadForm creates a new mock instance.

func (*MockUploadForm) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUploadForm) Write

func (m *MockUploadForm) Write(w *multipart.Writer) error

Write mocks base method.

type MockUploadFormMockRecorder

type MockUploadFormMockRecorder struct {
	// contains filtered or unexported fields
}

MockUploadFormMockRecorder is the mock recorder for MockUploadForm.

func (*MockUploadFormMockRecorder) Write

func (mr *MockUploadFormMockRecorder) Write(w interface{}) *gomock.Call

Write indicates an expected call of Write.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL