Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/spacemeshos/go-spacemesh/genvm/core (interfaces: Handler)
Generated by this command:
mockgen -typed -package=mocks -destination=./mocks/handler.go github.com/spacemeshos/go-spacemesh/genvm/core Handler
Package mocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/spacemeshos/go-spacemesh/genvm/core (interfaces: Template)
Generated by this command:
mockgen -typed -package=mocks -destination=./mocks/template.go github.com/spacemeshos/go-spacemesh/genvm/core Template
Package mocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/spacemeshos/go-spacemesh/genvm/core (interfaces: AccountUpdater)
Generated by this command:
mockgen -typed -package=mocks -destination=./mocks/updater.go github.com/spacemeshos/go-spacemesh/genvm/core AccountUpdater
Package mocks is a generated GoMock package.
Index ¶
- type AccountUpdaterUpdateCall
- type HandlerArgsCall
- type HandlerExecCall
- type HandlerLoadCall
- type HandlerNewCall
- type HandlerParseCall
- func (c *HandlerParseCall) Do(f func(core.Host, byte, *scale.Decoder) (core.ParseOutput, error)) *HandlerParseCall
- func (c *HandlerParseCall) DoAndReturn(f func(core.Host, byte, *scale.Decoder) (core.ParseOutput, error)) *HandlerParseCall
- func (c *HandlerParseCall) Return(arg0 core.ParseOutput, arg1 error) *HandlerParseCall
- type MockAccountUpdater
- type MockAccountUpdaterMockRecorder
- 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 MockHandlerMockRecorder
- func (mr *MockHandlerMockRecorder) Args(arg0 any) *HandlerArgsCall
- func (mr *MockHandlerMockRecorder) Exec(arg0, arg1, arg2 any) *HandlerExecCall
- func (mr *MockHandlerMockRecorder) Load(arg0 any) *HandlerLoadCall
- func (mr *MockHandlerMockRecorder) New(arg0 any) *HandlerNewCall
- func (mr *MockHandlerMockRecorder) Parse(arg0, arg1, arg2 any) *HandlerParseCall
- 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 MockTemplateMockRecorder
- func (mr *MockTemplateMockRecorder) BaseGas(arg0 any) *TemplateBaseGasCall
- func (mr *MockTemplateMockRecorder) EncodeScale(arg0 any) *TemplateEncodeScaleCall
- func (mr *MockTemplateMockRecorder) ExecGas(arg0 any) *TemplateExecGasCall
- func (mr *MockTemplateMockRecorder) LoadGas() *TemplateLoadGasCall
- func (mr *MockTemplateMockRecorder) MaxSpend(arg0, arg1 any) *TemplateMaxSpendCall
- func (mr *MockTemplateMockRecorder) Verify(arg0, arg1, arg2 any) *TemplateVerifyCall
- type TemplateBaseGasCall
- type TemplateEncodeScaleCall
- type TemplateExecGasCall
- type TemplateLoadGasCall
- type TemplateMaxSpendCall
- type TemplateVerifyCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountUpdaterUpdateCall ¶ added in v1.1.5
AccountUpdaterUpdateCall wrap *gomock.Call
func (*AccountUpdaterUpdateCall) Do ¶ added in v1.1.5
func (c *AccountUpdaterUpdateCall) Do(f func(types.Account) error) *AccountUpdaterUpdateCall
Do rewrite *gomock.Call.Do
func (*AccountUpdaterUpdateCall) DoAndReturn ¶ added in v1.1.5
func (c *AccountUpdaterUpdateCall) DoAndReturn(f func(types.Account) error) *AccountUpdaterUpdateCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*AccountUpdaterUpdateCall) Return ¶ added in v1.1.5
func (c *AccountUpdaterUpdateCall) Return(arg0 error) *AccountUpdaterUpdateCall
Return rewrite *gomock.Call.Return
type HandlerArgsCall ¶ added in v1.1.5
HandlerArgsCall wrap *gomock.Call
func (*HandlerArgsCall) Do ¶ added in v1.1.5
func (c *HandlerArgsCall) Do(f func(byte) scale.Type) *HandlerArgsCall
Do rewrite *gomock.Call.Do
func (*HandlerArgsCall) DoAndReturn ¶ added in v1.1.5
func (c *HandlerArgsCall) DoAndReturn(f func(byte) scale.Type) *HandlerArgsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*HandlerArgsCall) Return ¶ added in v1.1.5
func (c *HandlerArgsCall) Return(arg0 scale.Type) *HandlerArgsCall
Return rewrite *gomock.Call.Return
type HandlerExecCall ¶ added in v1.1.5
HandlerExecCall wrap *gomock.Call
func (*HandlerExecCall) Do ¶ added in v1.1.5
func (c *HandlerExecCall) Do(f func(core.Host, byte, scale.Encodable) error) *HandlerExecCall
Do rewrite *gomock.Call.Do
func (*HandlerExecCall) DoAndReturn ¶ added in v1.1.5
func (c *HandlerExecCall) DoAndReturn(f func(core.Host, byte, scale.Encodable) error) *HandlerExecCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*HandlerExecCall) Return ¶ added in v1.1.5
func (c *HandlerExecCall) Return(arg0 error) *HandlerExecCall
Return rewrite *gomock.Call.Return
type HandlerLoadCall ¶ added in v1.1.5
HandlerLoadCall wrap *gomock.Call
func (*HandlerLoadCall) Do ¶ added in v1.1.5
func (c *HandlerLoadCall) Do(f func([]byte) (core.Template, error)) *HandlerLoadCall
Do rewrite *gomock.Call.Do
func (*HandlerLoadCall) DoAndReturn ¶ added in v1.1.5
func (c *HandlerLoadCall) DoAndReturn(f func([]byte) (core.Template, error)) *HandlerLoadCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*HandlerLoadCall) Return ¶ added in v1.1.5
func (c *HandlerLoadCall) Return(arg0 core.Template, arg1 error) *HandlerLoadCall
Return rewrite *gomock.Call.Return
type HandlerNewCall ¶ added in v1.1.5
HandlerNewCall wrap *gomock.Call
func (*HandlerNewCall) Do ¶ added in v1.1.5
func (c *HandlerNewCall) Do(f func(any) (core.Template, error)) *HandlerNewCall
Do rewrite *gomock.Call.Do
func (*HandlerNewCall) DoAndReturn ¶ added in v1.1.5
func (c *HandlerNewCall) DoAndReturn(f func(any) (core.Template, error)) *HandlerNewCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*HandlerNewCall) Return ¶ added in v1.1.5
func (c *HandlerNewCall) Return(arg0 core.Template, arg1 error) *HandlerNewCall
Return rewrite *gomock.Call.Return
type HandlerParseCall ¶ added in v1.1.5
HandlerParseCall wrap *gomock.Call
func (*HandlerParseCall) Do ¶ added in v1.1.5
func (c *HandlerParseCall) Do(f func(core.Host, byte, *scale.Decoder) (core.ParseOutput, error)) *HandlerParseCall
Do rewrite *gomock.Call.Do
func (*HandlerParseCall) DoAndReturn ¶ added in v1.1.5
func (c *HandlerParseCall) DoAndReturn(f func(core.Host, byte, *scale.Decoder) (core.ParseOutput, error)) *HandlerParseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*HandlerParseCall) Return ¶ added in v1.1.5
func (c *HandlerParseCall) Return(arg0 core.ParseOutput, arg1 error) *HandlerParseCall
Return rewrite *gomock.Call.Return
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) *AccountUpdaterUpdateCall
Update indicates an expected call of Update.
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 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) *HandlerArgsCall
Args indicates an expected call of Args.
func (*MockHandlerMockRecorder) Exec ¶
func (mr *MockHandlerMockRecorder) Exec(arg0, arg1, arg2 any) *HandlerExecCall
Exec indicates an expected call of Exec.
func (*MockHandlerMockRecorder) Load ¶
func (mr *MockHandlerMockRecorder) Load(arg0 any) *HandlerLoadCall
Load indicates an expected call of Load.
func (*MockHandlerMockRecorder) New ¶
func (mr *MockHandlerMockRecorder) New(arg0 any) *HandlerNewCall
New indicates an expected call of New.
func (*MockHandlerMockRecorder) Parse ¶
func (mr *MockHandlerMockRecorder) Parse(arg0, arg1, arg2 any) *HandlerParseCall
Parse indicates an expected call of Parse.
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 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) *TemplateBaseGasCall
BaseGas indicates an expected call of BaseGas.
func (*MockTemplateMockRecorder) EncodeScale ¶
func (mr *MockTemplateMockRecorder) EncodeScale(arg0 any) *TemplateEncodeScaleCall
EncodeScale indicates an expected call of EncodeScale.
func (*MockTemplateMockRecorder) ExecGas ¶
func (mr *MockTemplateMockRecorder) ExecGas(arg0 any) *TemplateExecGasCall
ExecGas indicates an expected call of ExecGas.
func (*MockTemplateMockRecorder) LoadGas ¶
func (mr *MockTemplateMockRecorder) LoadGas() *TemplateLoadGasCall
LoadGas indicates an expected call of LoadGas.
func (*MockTemplateMockRecorder) MaxSpend ¶
func (mr *MockTemplateMockRecorder) MaxSpend(arg0, arg1 any) *TemplateMaxSpendCall
MaxSpend indicates an expected call of MaxSpend.
func (*MockTemplateMockRecorder) Verify ¶
func (mr *MockTemplateMockRecorder) Verify(arg0, arg1, arg2 any) *TemplateVerifyCall
Verify indicates an expected call of Verify.
type TemplateBaseGasCall ¶ added in v1.1.5
TemplateBaseGasCall wrap *gomock.Call
func (*TemplateBaseGasCall) Do ¶ added in v1.1.5
func (c *TemplateBaseGasCall) Do(f func(byte) uint64) *TemplateBaseGasCall
Do rewrite *gomock.Call.Do
func (*TemplateBaseGasCall) DoAndReturn ¶ added in v1.1.5
func (c *TemplateBaseGasCall) DoAndReturn(f func(byte) uint64) *TemplateBaseGasCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*TemplateBaseGasCall) Return ¶ added in v1.1.5
func (c *TemplateBaseGasCall) Return(arg0 uint64) *TemplateBaseGasCall
Return rewrite *gomock.Call.Return
type TemplateEncodeScaleCall ¶ added in v1.1.5
TemplateEncodeScaleCall wrap *gomock.Call
func (*TemplateEncodeScaleCall) Do ¶ added in v1.1.5
func (c *TemplateEncodeScaleCall) Do(f func(*scale.Encoder) (int, error)) *TemplateEncodeScaleCall
Do rewrite *gomock.Call.Do
func (*TemplateEncodeScaleCall) DoAndReturn ¶ added in v1.1.5
func (c *TemplateEncodeScaleCall) DoAndReturn(f func(*scale.Encoder) (int, error)) *TemplateEncodeScaleCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*TemplateEncodeScaleCall) Return ¶ added in v1.1.5
func (c *TemplateEncodeScaleCall) Return(arg0 int, arg1 error) *TemplateEncodeScaleCall
Return rewrite *gomock.Call.Return
type TemplateExecGasCall ¶ added in v1.1.5
TemplateExecGasCall wrap *gomock.Call
func (*TemplateExecGasCall) Do ¶ added in v1.1.5
func (c *TemplateExecGasCall) Do(f func(byte) uint64) *TemplateExecGasCall
Do rewrite *gomock.Call.Do
func (*TemplateExecGasCall) DoAndReturn ¶ added in v1.1.5
func (c *TemplateExecGasCall) DoAndReturn(f func(byte) uint64) *TemplateExecGasCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*TemplateExecGasCall) Return ¶ added in v1.1.5
func (c *TemplateExecGasCall) Return(arg0 uint64) *TemplateExecGasCall
Return rewrite *gomock.Call.Return
type TemplateLoadGasCall ¶ added in v1.1.5
TemplateLoadGasCall wrap *gomock.Call
func (*TemplateLoadGasCall) Do ¶ added in v1.1.5
func (c *TemplateLoadGasCall) Do(f func() uint64) *TemplateLoadGasCall
Do rewrite *gomock.Call.Do
func (*TemplateLoadGasCall) DoAndReturn ¶ added in v1.1.5
func (c *TemplateLoadGasCall) DoAndReturn(f func() uint64) *TemplateLoadGasCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*TemplateLoadGasCall) Return ¶ added in v1.1.5
func (c *TemplateLoadGasCall) Return(arg0 uint64) *TemplateLoadGasCall
Return rewrite *gomock.Call.Return
type TemplateMaxSpendCall ¶ added in v1.1.5
TemplateMaxSpendCall wrap *gomock.Call
func (*TemplateMaxSpendCall) Do ¶ added in v1.1.5
func (c *TemplateMaxSpendCall) Do(f func(byte, any) (uint64, error)) *TemplateMaxSpendCall
Do rewrite *gomock.Call.Do
func (*TemplateMaxSpendCall) DoAndReturn ¶ added in v1.1.5
func (c *TemplateMaxSpendCall) DoAndReturn(f func(byte, any) (uint64, error)) *TemplateMaxSpendCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*TemplateMaxSpendCall) Return ¶ added in v1.1.5
func (c *TemplateMaxSpendCall) Return(arg0 uint64, arg1 error) *TemplateMaxSpendCall
Return rewrite *gomock.Call.Return
type TemplateVerifyCall ¶ added in v1.1.5
TemplateVerifyCall wrap *gomock.Call
func (*TemplateVerifyCall) Do ¶ added in v1.1.5
func (c *TemplateVerifyCall) Do(f func(core.Host, []byte, *scale.Decoder) bool) *TemplateVerifyCall
Do rewrite *gomock.Call.Do
func (*TemplateVerifyCall) DoAndReturn ¶ added in v1.1.5
func (c *TemplateVerifyCall) DoAndReturn(f func(core.Host, []byte, *scale.Decoder) bool) *TemplateVerifyCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*TemplateVerifyCall) Return ¶ added in v1.1.5
func (c *TemplateVerifyCall) Return(arg0 bool) *TemplateVerifyCall
Return rewrite *gomock.Call.Return