mocks

package
v1.26.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) Get

Get mocks base method.

func (*MockClient) Post

Post mocks base method.

func (*MockClient) Put

Put mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) Get

func (mr *MockClientMockRecorder) Get(ctx, req interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockClientMockRecorder) Post

func (mr *MockClientMockRecorder) Post(ctx, req interface{}) *gomock.Call

Post indicates an expected call of Post.

func (*MockClientMockRecorder) Put

func (mr *MockClientMockRecorder) Put(ctx, req interface{}) *gomock.Call

Put indicates an expected call of Put.

type MockRequest

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

MockRequest is a mock of Request interface.

func NewMockRequest

func NewMockRequest(ctrl *gomock.Controller) *MockRequest

NewMockRequest creates a new mock instance.

func (*MockRequest) AddHeader

func (m *MockRequest) AddHeader(header, value string)

AddHeader mocks base method.

func (*MockRequest) EXPECT

func (m *MockRequest) EXPECT() *MockRequestMockRecorder

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

func (*MockRequest) GetHeaders

func (m *MockRequest) GetHeaders() map[string]string

GetHeaders mocks base method.

func (*MockRequest) GetPayload

func (m *MockRequest) GetPayload() ([]byte, error)

GetPayload mocks base method.

func (*MockRequest) GetURL

func (m *MockRequest) GetURL() string

GetURL mocks base method.

type MockRequestMockRecorder

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

MockRequestMockRecorder is the mock recorder for MockRequest.

func (*MockRequestMockRecorder) AddHeader

func (mr *MockRequestMockRecorder) AddHeader(header, value interface{}) *gomock.Call

AddHeader indicates an expected call of AddHeader.

func (*MockRequestMockRecorder) GetHeaders

func (mr *MockRequestMockRecorder) GetHeaders() *gomock.Call

GetHeaders indicates an expected call of GetHeaders.

func (*MockRequestMockRecorder) GetPayload

func (mr *MockRequestMockRecorder) GetPayload() *gomock.Call

GetPayload indicates an expected call of GetPayload.

func (*MockRequestMockRecorder) GetURL

func (mr *MockRequestMockRecorder) GetURL() *gomock.Call

GetURL indicates an expected call of GetURL.

type MockResponse

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

MockResponse is a mock of Response interface.

func NewMockResponse

func NewMockResponse(ctrl *gomock.Controller) *MockResponse

NewMockResponse creates a new mock instance.

func (*MockResponse) EXPECT

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

func (*MockResponse) GetBody

func (m *MockResponse) GetBody() []byte

GetBody mocks base method.

func (*MockResponse) GetStatusCode

func (m *MockResponse) GetStatusCode() int

GetStatusCode mocks base method.

type MockResponseMockRecorder

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

MockResponseMockRecorder is the mock recorder for MockResponse.

func (*MockResponseMockRecorder) GetBody

func (mr *MockResponseMockRecorder) GetBody() *gomock.Call

GetBody indicates an expected call of GetBody.

func (*MockResponseMockRecorder) GetStatusCode

func (mr *MockResponseMockRecorder) GetStatusCode() *gomock.Call

GetStatusCode indicates an expected call of GetStatusCode.

Jump to

Keyboard shortcuts

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