Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockAccountUpdater
- type MockAccountUpdaterMockRecorder
- type MockAccountUpdaterUpdateCall
- type MockHandler
- func (m *MockHandler) Args(arg0 byte) scale.Type
- func (m *MockHandler) EXPECT() *MockHandlerMockRecorder
- func (m *MockHandler) Exec(arg0 core.Host, arg1 byte, arg2 scale.Encodable) error
- func (m *MockHandler) Load(arg0 []byte) (core.Template, error)
- func (m *MockHandler) New(arg0 any) (core.Template, error)
- func (m *MockHandler) Parse(arg0 core.Host, arg1 byte, arg2 *scale.Decoder) (core.ParseOutput, error)
- type MockHandlerArgsCall
- type MockHandlerExecCall
- type MockHandlerLoadCall
- type MockHandlerMockRecorder
- func (mr *MockHandlerMockRecorder) Args(arg0 any) *MockHandlerArgsCall
- func (mr *MockHandlerMockRecorder) Exec(arg0, arg1, arg2 any) *MockHandlerExecCall
- func (mr *MockHandlerMockRecorder) Load(arg0 any) *MockHandlerLoadCall
- func (mr *MockHandlerMockRecorder) New(arg0 any) *MockHandlerNewCall
- func (mr *MockHandlerMockRecorder) Parse(arg0, arg1, arg2 any) *MockHandlerParseCall
- type MockHandlerNewCall
- type MockHandlerParseCall
- func (c *MockHandlerParseCall) Do(f func(core.Host, byte, *scale.Decoder) (core.ParseOutput, error)) *MockHandlerParseCall
- func (c *MockHandlerParseCall) DoAndReturn(f func(core.Host, byte, *scale.Decoder) (core.ParseOutput, error)) *MockHandlerParseCall
- func (c *MockHandlerParseCall) Return(arg0 core.ParseOutput, arg1 error) *MockHandlerParseCall
- type MockTemplate
- func (m *MockTemplate) BaseGas(arg0 byte) uint64
- func (m *MockTemplate) EXPECT() *MockTemplateMockRecorder
- func (m *MockTemplate) EncodeScale(arg0 *scale.Encoder) (int, error)
- func (m *MockTemplate) ExecGas(arg0 byte) uint64
- func (m *MockTemplate) LoadGas() uint64
- func (m *MockTemplate) MaxSpend(arg0 byte, arg1 any) (uint64, error)
- func (m *MockTemplate) Verify(arg0 core.Host, arg1 []byte, arg2 *scale.Decoder) bool
- type MockTemplateBaseGasCall
- type MockTemplateEncodeScaleCall
- func (c *MockTemplateEncodeScaleCall) Do(f func(*scale.Encoder) (int, error)) *MockTemplateEncodeScaleCall
- func (c *MockTemplateEncodeScaleCall) DoAndReturn(f func(*scale.Encoder) (int, error)) *MockTemplateEncodeScaleCall
- func (c *MockTemplateEncodeScaleCall) Return(arg0 int, arg1 error) *MockTemplateEncodeScaleCall
- type MockTemplateExecGasCall
- type MockTemplateLoadGasCall
- type MockTemplateMaxSpendCall
- type MockTemplateMockRecorder
- func (mr *MockTemplateMockRecorder) BaseGas(arg0 any) *MockTemplateBaseGasCall
- func (mr *MockTemplateMockRecorder) EncodeScale(arg0 any) *MockTemplateEncodeScaleCall
- func (mr *MockTemplateMockRecorder) ExecGas(arg0 any) *MockTemplateExecGasCall
- func (mr *MockTemplateMockRecorder) LoadGas() *MockTemplateLoadGasCall
- func (mr *MockTemplateMockRecorder) MaxSpend(arg0, arg1 any) *MockTemplateMaxSpendCall
- func (mr *MockTemplateMockRecorder) Verify(arg0, arg1, arg2 any) *MockTemplateVerifyCall
- type MockTemplateVerifyCall
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 ¶
func (m *MockAccountUpdater) EXPECT() *MockAccountUpdaterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAccountUpdaterMockRecorder ¶
type MockAccountUpdaterMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountUpdaterMockRecorder is the mock recorder for MockAccountUpdater.
func (*MockAccountUpdaterMockRecorder) Update ¶
func (mr *MockAccountUpdaterMockRecorder) Update(arg0 any) *MockAccountUpdaterUpdateCall
Update indicates an expected call of Update.
type MockAccountUpdaterUpdateCall ¶ added in v1.4.0
MockAccountUpdaterUpdateCall wrap *gomock.Call
func (*MockAccountUpdaterUpdateCall) Do ¶ added in v1.4.0
func (c *MockAccountUpdaterUpdateCall) Do(f func(types.Account) error) *MockAccountUpdaterUpdateCall
Do rewrite *gomock.Call.Do
func (*MockAccountUpdaterUpdateCall) DoAndReturn ¶ added in v1.4.0
func (c *MockAccountUpdaterUpdateCall) DoAndReturn(f func(types.Account) error) *MockAccountUpdaterUpdateCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAccountUpdaterUpdateCall) Return ¶ added in v1.4.0
func (c *MockAccountUpdaterUpdateCall) Return(arg0 error) *MockAccountUpdaterUpdateCall
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) EXPECT ¶
func (m *MockHandler) EXPECT() *MockHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHandler) Load ¶
func (m *MockHandler) Load(arg0 []byte) (core.Template, error)
Load mocks base method.
type MockHandlerArgsCall ¶ added in v1.4.0
MockHandlerArgsCall wrap *gomock.Call
func (*MockHandlerArgsCall) Do ¶ added in v1.4.0
func (c *MockHandlerArgsCall) Do(f func(byte) scale.Type) *MockHandlerArgsCall
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
func (c *MockHandlerArgsCall) Return(arg0 scale.Type) *MockHandlerArgsCall
Return rewrite *gomock.Call.Return
type MockHandlerExecCall ¶ added in v1.4.0
MockHandlerExecCall wrap *gomock.Call
func (*MockHandlerExecCall) Do ¶ added in v1.4.0
func (c *MockHandlerExecCall) Do(f func(core.Host, byte, scale.Encodable) error) *MockHandlerExecCall
Do rewrite *gomock.Call.Do
func (*MockHandlerExecCall) DoAndReturn ¶ added in v1.4.0
func (c *MockHandlerExecCall) DoAndReturn(f func(core.Host, byte, scale.Encodable) error) *MockHandlerExecCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockHandlerExecCall) Return ¶ added in v1.4.0
func (c *MockHandlerExecCall) Return(arg0 error) *MockHandlerExecCall
Return rewrite *gomock.Call.Return
type MockHandlerLoadCall ¶ added in v1.4.0
MockHandlerLoadCall wrap *gomock.Call
func (*MockHandlerLoadCall) Do ¶ added in v1.4.0
func (c *MockHandlerLoadCall) Do(f func([]byte) (core.Template, error)) *MockHandlerLoadCall
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
func (c *MockHandlerLoadCall) Return(arg0 core.Template, arg1 error) *MockHandlerLoadCall
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 ¶
func (mr *MockHandlerMockRecorder) Args(arg0 any) *MockHandlerArgsCall
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 ¶
func (mr *MockHandlerMockRecorder) Load(arg0 any) *MockHandlerLoadCall
Load indicates an expected call of Load.
func (*MockHandlerMockRecorder) New ¶
func (mr *MockHandlerMockRecorder) New(arg0 any) *MockHandlerNewCall
New indicates an expected call of New.
func (*MockHandlerMockRecorder) Parse ¶
func (mr *MockHandlerMockRecorder) Parse(arg0, arg1, arg2 any) *MockHandlerParseCall
Parse indicates an expected call of Parse.
type MockHandlerNewCall ¶ added in v1.4.0
MockHandlerNewCall wrap *gomock.Call
func (*MockHandlerNewCall) Do ¶ added in v1.4.0
func (c *MockHandlerNewCall) Do(f func(any) (core.Template, error)) *MockHandlerNewCall
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
MockHandlerParseCall wrap *gomock.Call
func (*MockHandlerParseCall) Do ¶ added in v1.4.0
func (c *MockHandlerParseCall) Do(f func(core.Host, byte, *scale.Decoder) (core.ParseOutput, error)) *MockHandlerParseCall
Do rewrite *gomock.Call.Do
func (*MockHandlerParseCall) DoAndReturn ¶ added in v1.4.0
func (c *MockHandlerParseCall) DoAndReturn(f func(core.Host, byte, *scale.Decoder) (core.ParseOutput, error)) *MockHandlerParseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockHandlerParseCall) Return ¶ added in v1.4.0
func (c *MockHandlerParseCall) Return(arg0 core.ParseOutput, arg1 error) *MockHandlerParseCall
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 ¶
func (m *MockTemplate) EXPECT() *MockTemplateMockRecorder
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.
type MockTemplateBaseGasCall ¶ added in v1.4.0
MockTemplateBaseGasCall wrap *gomock.Call
func (*MockTemplateBaseGasCall) Do ¶ added in v1.4.0
func (c *MockTemplateBaseGasCall) Do(f func(byte) uint64) *MockTemplateBaseGasCall
Do rewrite *gomock.Call.Do
func (*MockTemplateBaseGasCall) DoAndReturn ¶ added in v1.4.0
func (c *MockTemplateBaseGasCall) DoAndReturn(f func(byte) uint64) *MockTemplateBaseGasCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTemplateBaseGasCall) Return ¶ added in v1.4.0
func (c *MockTemplateBaseGasCall) Return(arg0 uint64) *MockTemplateBaseGasCall
Return rewrite *gomock.Call.Return
type MockTemplateEncodeScaleCall ¶ added in v1.4.0
MockTemplateEncodeScaleCall wrap *gomock.Call
func (*MockTemplateEncodeScaleCall) Do ¶ added in v1.4.0
func (c *MockTemplateEncodeScaleCall) Do(f func(*scale.Encoder) (int, error)) *MockTemplateEncodeScaleCall
Do rewrite *gomock.Call.Do
func (*MockTemplateEncodeScaleCall) DoAndReturn ¶ added in v1.4.0
func (c *MockTemplateEncodeScaleCall) DoAndReturn(f func(*scale.Encoder) (int, error)) *MockTemplateEncodeScaleCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTemplateEncodeScaleCall) Return ¶ added in v1.4.0
func (c *MockTemplateEncodeScaleCall) Return(arg0 int, arg1 error) *MockTemplateEncodeScaleCall
Return rewrite *gomock.Call.Return
type MockTemplateExecGasCall ¶ added in v1.4.0
MockTemplateExecGasCall wrap *gomock.Call
func (*MockTemplateExecGasCall) Do ¶ added in v1.4.0
func (c *MockTemplateExecGasCall) Do(f func(byte) uint64) *MockTemplateExecGasCall
Do rewrite *gomock.Call.Do
func (*MockTemplateExecGasCall) DoAndReturn ¶ added in v1.4.0
func (c *MockTemplateExecGasCall) DoAndReturn(f func(byte) uint64) *MockTemplateExecGasCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTemplateExecGasCall) Return ¶ added in v1.4.0
func (c *MockTemplateExecGasCall) Return(arg0 uint64) *MockTemplateExecGasCall
Return rewrite *gomock.Call.Return
type MockTemplateLoadGasCall ¶ added in v1.4.0
MockTemplateLoadGasCall wrap *gomock.Call
func (*MockTemplateLoadGasCall) Do ¶ added in v1.4.0
func (c *MockTemplateLoadGasCall) Do(f func() uint64) *MockTemplateLoadGasCall
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
func (c *MockTemplateLoadGasCall) Return(arg0 uint64) *MockTemplateLoadGasCall
Return rewrite *gomock.Call.Return
type MockTemplateMaxSpendCall ¶ added in v1.4.0
MockTemplateMaxSpendCall wrap *gomock.Call
func (*MockTemplateMaxSpendCall) Do ¶ added in v1.4.0
func (c *MockTemplateMaxSpendCall) Do(f func(byte, any) (uint64, error)) *MockTemplateMaxSpendCall
Do rewrite *gomock.Call.Do
func (*MockTemplateMaxSpendCall) DoAndReturn ¶ added in v1.4.0
func (c *MockTemplateMaxSpendCall) DoAndReturn(f func(byte, any) (uint64, error)) *MockTemplateMaxSpendCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTemplateMaxSpendCall) Return ¶ added in v1.4.0
func (c *MockTemplateMaxSpendCall) Return(arg0 uint64, arg1 error) *MockTemplateMaxSpendCall
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 ¶
func (mr *MockTemplateMockRecorder) BaseGas(arg0 any) *MockTemplateBaseGasCall
BaseGas indicates an expected call of BaseGas.
func (*MockTemplateMockRecorder) EncodeScale ¶
func (mr *MockTemplateMockRecorder) EncodeScale(arg0 any) *MockTemplateEncodeScaleCall
EncodeScale indicates an expected call of EncodeScale.
func (*MockTemplateMockRecorder) ExecGas ¶
func (mr *MockTemplateMockRecorder) ExecGas(arg0 any) *MockTemplateExecGasCall
ExecGas indicates an expected call of ExecGas.
func (*MockTemplateMockRecorder) LoadGas ¶
func (mr *MockTemplateMockRecorder) LoadGas() *MockTemplateLoadGasCall
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
MockTemplateVerifyCall wrap *gomock.Call
func (*MockTemplateVerifyCall) Do ¶ added in v1.4.0
func (c *MockTemplateVerifyCall) Do(f func(core.Host, []byte, *scale.Decoder) bool) *MockTemplateVerifyCall
Do rewrite *gomock.Call.Do
func (*MockTemplateVerifyCall) DoAndReturn ¶ added in v1.4.0
func (c *MockTemplateVerifyCall) DoAndReturn(f func(core.Host, []byte, *scale.Decoder) bool) *MockTemplateVerifyCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTemplateVerifyCall) Return ¶ added in v1.4.0
func (c *MockTemplateVerifyCall) Return(arg0 bool) *MockTemplateVerifyCall
Return rewrite *gomock.Call.Return