mock

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

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 MockCaller

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

MockCaller is a mock of Caller interface.

func NewMockCaller

func NewMockCaller(ctrl *gomock.Controller) *MockCaller

NewMockCaller creates a new mock instance.

func (*MockCaller) Call

func (m *MockCaller) Call(arg0 string, arg1 *telegoapi.RequestData) (*telegoapi.Response, error)

Call mocks base method.

func (*MockCaller) EXPECT

func (m *MockCaller) EXPECT() *MockCallerMockRecorder

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

type MockCallerCallCall

type MockCallerCallCall struct {
	*gomock.Call
}

MockCallerCallCall wrap *gomock.Call

func (*MockCallerCallCall) Do

Do rewrite *gomock.Call.Do

func (*MockCallerCallCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCallerCallCall) Return

Return rewrite *gomock.Call.Return

type MockCallerMockRecorder

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

MockCallerMockRecorder is the mock recorder for MockCaller.

func (*MockCallerMockRecorder) Call

func (mr *MockCallerMockRecorder) Call(arg0, arg1 any) *MockCallerCallCall

Call indicates an expected call of Call.

type MockRequestConstructor

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

MockRequestConstructor is a mock of RequestConstructor interface.

func NewMockRequestConstructor

func NewMockRequestConstructor(ctrl *gomock.Controller) *MockRequestConstructor

NewMockRequestConstructor creates a new mock instance.

func (*MockRequestConstructor) EXPECT

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

func (*MockRequestConstructor) JSONRequest

func (m *MockRequestConstructor) JSONRequest(arg0 any) (*telegoapi.RequestData, error)

JSONRequest mocks base method.

func (*MockRequestConstructor) MultipartRequest

func (m *MockRequestConstructor) MultipartRequest(arg0 map[string]string, arg1 map[string]telegoapi.NamedReader) (*telegoapi.RequestData, error)

MultipartRequest mocks base method.

type MockRequestConstructorJSONRequestCall

type MockRequestConstructorJSONRequestCall struct {
	*gomock.Call
}

MockRequestConstructorJSONRequestCall wrap *gomock.Call

func (*MockRequestConstructorJSONRequestCall) Do

Do rewrite *gomock.Call.Do

func (*MockRequestConstructorJSONRequestCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRequestConstructorJSONRequestCall) Return

Return rewrite *gomock.Call.Return

type MockRequestConstructorMockRecorder

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

MockRequestConstructorMockRecorder is the mock recorder for MockRequestConstructor.

func (*MockRequestConstructorMockRecorder) JSONRequest

JSONRequest indicates an expected call of JSONRequest.

func (*MockRequestConstructorMockRecorder) MultipartRequest

MultipartRequest indicates an expected call of MultipartRequest.

type MockRequestConstructorMultipartRequestCall

type MockRequestConstructorMultipartRequestCall struct {
	*gomock.Call
}

MockRequestConstructorMultipartRequestCall wrap *gomock.Call

func (*MockRequestConstructorMultipartRequestCall) Do

Do rewrite *gomock.Call.Do

func (*MockRequestConstructorMultipartRequestCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRequestConstructorMultipartRequestCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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