mocks

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 5 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 MockAccountUpdater

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

MockAccountUpdater is a mock of AccountUpdater interface.

func NewMockAccountUpdater

func NewMockAccountUpdater(ctrl *gomock.Controller) *MockAccountUpdater

NewMockAccountUpdater creates a new mock instance.

func (*MockAccountUpdater) EXPECT

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

func (*MockAccountUpdater) Update

func (m *MockAccountUpdater) Update(arg0 types.Account) error

Update mocks base method.

type MockAccountUpdaterMockRecorder

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

MockAccountUpdaterMockRecorder is the mock recorder for MockAccountUpdater.

func (*MockAccountUpdaterMockRecorder) Update

Update indicates an expected call of Update.

type MockAccountUpdaterUpdateCall added in v1.4.0

type MockAccountUpdaterUpdateCall struct {
	*gomock.Call
}

MockAccountUpdaterUpdateCall wrap *gomock.Call

func (*MockAccountUpdaterUpdateCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockAccountUpdaterUpdateCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAccountUpdaterUpdateCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockHandler

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

MockHandler is a mock of Handler interface.

func NewMockHandler

func NewMockHandler(ctrl *gomock.Controller) *MockHandler

NewMockHandler creates a new mock instance.

func (*MockHandler) Args

func (m *MockHandler) Args(arg0 byte) scale.Type

Args mocks base method.

func (*MockHandler) EXPECT

func (m *MockHandler) EXPECT() *MockHandlerMockRecorder

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

func (*MockHandler) Exec

func (m *MockHandler) Exec(arg0 core.Host, arg1 byte, arg2 scale.Encodable) error

Exec mocks base method.

func (*MockHandler) Load

func (m *MockHandler) Load(arg0 []byte) (core.Template, error)

Load mocks base method.

func (*MockHandler) New

func (m *MockHandler) New(arg0 any) (core.Template, error)

New mocks base method.

func (*MockHandler) Parse

func (m *MockHandler) Parse(arg0 byte, arg1 *scale.Decoder) (core.ParseOutput, error)

Parse mocks base method.

type MockHandlerArgsCall added in v1.4.0

type MockHandlerArgsCall struct {
	*gomock.Call
}

MockHandlerArgsCall wrap *gomock.Call

func (*MockHandlerArgsCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockHandlerArgsCall) DoAndReturn added in v1.4.0

func (c *MockHandlerArgsCall) DoAndReturn(f func(byte) scale.Type) *MockHandlerArgsCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHandlerArgsCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockHandlerExecCall added in v1.4.0

type MockHandlerExecCall struct {
	*gomock.Call
}

MockHandlerExecCall wrap *gomock.Call

func (*MockHandlerExecCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockHandlerExecCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHandlerExecCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockHandlerLoadCall added in v1.4.0

type MockHandlerLoadCall struct {
	*gomock.Call
}

MockHandlerLoadCall wrap *gomock.Call

func (*MockHandlerLoadCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockHandlerLoadCall) DoAndReturn added in v1.4.0

func (c *MockHandlerLoadCall) DoAndReturn(f func([]byte) (core.Template, error)) *MockHandlerLoadCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHandlerLoadCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockHandlerMockRecorder

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

MockHandlerMockRecorder is the mock recorder for MockHandler.

func (*MockHandlerMockRecorder) Args

Args indicates an expected call of Args.

func (*MockHandlerMockRecorder) Exec

func (mr *MockHandlerMockRecorder) Exec(arg0, arg1, arg2 any) *MockHandlerExecCall

Exec indicates an expected call of Exec.

func (*MockHandlerMockRecorder) Load

Load indicates an expected call of Load.

func (*MockHandlerMockRecorder) New

New indicates an expected call of New.

func (*MockHandlerMockRecorder) Parse

func (mr *MockHandlerMockRecorder) Parse(arg0, arg1 any) *MockHandlerParseCall

Parse indicates an expected call of Parse.

type MockHandlerNewCall added in v1.4.0

type MockHandlerNewCall struct {
	*gomock.Call
}

MockHandlerNewCall wrap *gomock.Call

func (*MockHandlerNewCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockHandlerNewCall) DoAndReturn added in v1.4.0

func (c *MockHandlerNewCall) DoAndReturn(f func(any) (core.Template, error)) *MockHandlerNewCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHandlerNewCall) Return added in v1.4.0

func (c *MockHandlerNewCall) Return(arg0 core.Template, arg1 error) *MockHandlerNewCall

Return rewrite *gomock.Call.Return

type MockHandlerParseCall added in v1.4.0

type MockHandlerParseCall struct {
	*gomock.Call
}

MockHandlerParseCall wrap *gomock.Call

func (*MockHandlerParseCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockHandlerParseCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHandlerParseCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockTemplate

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

MockTemplate is a mock of Template interface.

func NewMockTemplate

func NewMockTemplate(ctrl *gomock.Controller) *MockTemplate

NewMockTemplate creates a new mock instance.

func (*MockTemplate) BaseGas

func (m *MockTemplate) BaseGas(arg0 byte) uint64

BaseGas mocks base method.

func (*MockTemplate) EXPECT

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

func (*MockTemplate) EncodeScale

func (m *MockTemplate) EncodeScale(arg0 *scale.Encoder) (int, error)

EncodeScale mocks base method.

func (*MockTemplate) ExecGas

func (m *MockTemplate) ExecGas(arg0 byte) uint64

ExecGas mocks base method.

func (*MockTemplate) LoadGas

func (m *MockTemplate) LoadGas() uint64

LoadGas mocks base method.

func (*MockTemplate) MaxSpend

func (m *MockTemplate) MaxSpend(arg0 byte, arg1 any) (uint64, error)

MaxSpend mocks base method.

func (*MockTemplate) Verify

func (m *MockTemplate) Verify(arg0 core.Host, arg1 []byte, arg2 *scale.Decoder) bool

Verify mocks base method.

type MockTemplateBaseGasCall added in v1.4.0

type MockTemplateBaseGasCall struct {
	*gomock.Call
}

MockTemplateBaseGasCall wrap *gomock.Call

func (*MockTemplateBaseGasCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockTemplateBaseGasCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTemplateBaseGasCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockTemplateEncodeScaleCall added in v1.4.0

type MockTemplateEncodeScaleCall struct {
	*gomock.Call
}

MockTemplateEncodeScaleCall wrap *gomock.Call

func (*MockTemplateEncodeScaleCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockTemplateEncodeScaleCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTemplateEncodeScaleCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockTemplateExecGasCall added in v1.4.0

type MockTemplateExecGasCall struct {
	*gomock.Call
}

MockTemplateExecGasCall wrap *gomock.Call

func (*MockTemplateExecGasCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockTemplateExecGasCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTemplateExecGasCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockTemplateLoadGasCall added in v1.4.0

type MockTemplateLoadGasCall struct {
	*gomock.Call
}

MockTemplateLoadGasCall wrap *gomock.Call

func (*MockTemplateLoadGasCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockTemplateLoadGasCall) DoAndReturn added in v1.4.0

func (c *MockTemplateLoadGasCall) DoAndReturn(f func() uint64) *MockTemplateLoadGasCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTemplateLoadGasCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockTemplateMaxSpendCall added in v1.4.0

type MockTemplateMaxSpendCall struct {
	*gomock.Call
}

MockTemplateMaxSpendCall wrap *gomock.Call

func (*MockTemplateMaxSpendCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockTemplateMaxSpendCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTemplateMaxSpendCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockTemplateMockRecorder

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

MockTemplateMockRecorder is the mock recorder for MockTemplate.

func (*MockTemplateMockRecorder) BaseGas

BaseGas indicates an expected call of BaseGas.

func (*MockTemplateMockRecorder) EncodeScale

EncodeScale indicates an expected call of EncodeScale.

func (*MockTemplateMockRecorder) ExecGas

ExecGas indicates an expected call of ExecGas.

func (*MockTemplateMockRecorder) LoadGas

LoadGas indicates an expected call of LoadGas.

func (*MockTemplateMockRecorder) MaxSpend

func (mr *MockTemplateMockRecorder) MaxSpend(arg0, arg1 any) *MockTemplateMaxSpendCall

MaxSpend indicates an expected call of MaxSpend.

func (*MockTemplateMockRecorder) Verify

func (mr *MockTemplateMockRecorder) Verify(arg0, arg1, arg2 any) *MockTemplateVerifyCall

Verify indicates an expected call of Verify.

type MockTemplateVerifyCall added in v1.4.0

type MockTemplateVerifyCall struct {
	*gomock.Call
}

MockTemplateVerifyCall wrap *gomock.Call

func (*MockTemplateVerifyCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockTemplateVerifyCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTemplateVerifyCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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