mocks

package
v1.3.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 5 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountUpdaterUpdateCall added in v1.1.5

type AccountUpdaterUpdateCall struct {
	*gomock.Call
}

AccountUpdaterUpdateCall wrap *gomock.Call

func (*AccountUpdaterUpdateCall) Do added in v1.1.5

Do rewrite *gomock.Call.Do

func (*AccountUpdaterUpdateCall) DoAndReturn added in v1.1.5

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*AccountUpdaterUpdateCall) Return added in v1.1.5

Return rewrite *gomock.Call.Return

type HandlerArgsCall added in v1.1.5

type HandlerArgsCall struct {
	*gomock.Call
}

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

type HandlerExecCall struct {
	*gomock.Call
}

HandlerExecCall wrap *gomock.Call

func (*HandlerExecCall) Do added in v1.1.5

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

type HandlerLoadCall struct {
	*gomock.Call
}

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

type HandlerNewCall struct {
	*gomock.Call
}

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

type HandlerParseCall struct {
	*gomock.Call
}

HandlerParseCall wrap *gomock.Call

func (*HandlerParseCall) Do added in v1.1.5

Do rewrite *gomock.Call.Do

func (*HandlerParseCall) DoAndReturn added in v1.1.5

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

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 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 core.Host, arg1 byte, arg2 *scale.Decoder) (core.ParseOutput, error)

Parse mocks base method.

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) *HandlerExecCall

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, 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

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 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

func (mr *MockTemplateMockRecorder) EncodeScale(arg0 any) *TemplateEncodeScaleCall

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) *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

type TemplateBaseGasCall struct {
	*gomock.Call
}

TemplateBaseGasCall wrap *gomock.Call

func (*TemplateBaseGasCall) Do added in v1.1.5

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

Return rewrite *gomock.Call.Return

type TemplateEncodeScaleCall added in v1.1.5

type TemplateEncodeScaleCall struct {
	*gomock.Call
}

TemplateEncodeScaleCall wrap *gomock.Call

func (*TemplateEncodeScaleCall) Do added in v1.1.5

Do rewrite *gomock.Call.Do

func (*TemplateEncodeScaleCall) DoAndReturn added in v1.1.5

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*TemplateEncodeScaleCall) Return added in v1.1.5

Return rewrite *gomock.Call.Return

type TemplateExecGasCall added in v1.1.5

type TemplateExecGasCall struct {
	*gomock.Call
}

TemplateExecGasCall wrap *gomock.Call

func (*TemplateExecGasCall) Do added in v1.1.5

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

Return rewrite *gomock.Call.Return

type TemplateLoadGasCall added in v1.1.5

type TemplateLoadGasCall struct {
	*gomock.Call
}

TemplateLoadGasCall wrap *gomock.Call

func (*TemplateLoadGasCall) Do added in v1.1.5

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

Return rewrite *gomock.Call.Return

type TemplateMaxSpendCall added in v1.1.5

type TemplateMaxSpendCall struct {
	*gomock.Call
}

TemplateMaxSpendCall wrap *gomock.Call

func (*TemplateMaxSpendCall) Do added in v1.1.5

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

type TemplateVerifyCall struct {
	*gomock.Call
}

TemplateVerifyCall wrap *gomock.Call

func (*TemplateVerifyCall) Do added in v1.1.5

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

Jump to

Keyboard shortcuts

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