mock_factory

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mock_factory is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockFactory

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

MockFactory is a mock of Factory interface.

func NewMockFactory

func NewMockFactory(ctrl *gomock.Controller) *MockFactory

NewMockFactory creates a new mock instance.

func (*MockFactory) DeleteTipBlock

func (m *MockFactory) DeleteTipBlock(arg0 context.Context, arg1 *block.Block) error

DeleteTipBlock mocks base method.

func (*MockFactory) EXPECT

func (m *MockFactory) EXPECT() *MockFactoryMockRecorder

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

func (*MockFactory) Height

func (m *MockFactory) Height() (uint64, error)

Height mocks base method.

func (*MockFactory) NewBlockBuilder

func (m *MockFactory) NewBlockBuilder(arg0 context.Context, arg1 actpool.ActPool, arg2 func(action.Envelope) (*action.SealedEnvelope, error)) (*block.Builder, error)

NewBlockBuilder mocks base method.

func (*MockFactory) PutBlock

func (m *MockFactory) PutBlock(arg0 context.Context, arg1 *block.Block) error

PutBlock mocks base method.

func (*MockFactory) ReadContractStorage

func (m *MockFactory) ReadContractStorage(arg0 context.Context, arg1 address.Address, arg2 []byte) ([]byte, error)

ReadContractStorage mocks base method.

func (*MockFactory) ReadView

func (m *MockFactory) ReadView(arg0 string) (interface{}, error)

ReadView mocks base method.

func (*MockFactory) Register

func (m *MockFactory) Register(arg0 protocol.Protocol) error

Register mocks base method.

func (*MockFactory) SimulateExecution

func (m *MockFactory) SimulateExecution(arg0 context.Context, arg1 address.Address, arg2 action.Envelope, arg3 ...protocol.SimulateOption) ([]byte, *action.Receipt, error)

SimulateExecution mocks base method.

func (*MockFactory) Start

func (m *MockFactory) Start(arg0 context.Context) error

Start mocks base method.

func (*MockFactory) State

func (m *MockFactory) State(arg0 interface{}, arg1 ...protocol.StateOption) (uint64, error)

State mocks base method.

func (*MockFactory) StateAtHeight

func (m *MockFactory) StateAtHeight(arg0 uint64, arg1 interface{}, arg2 ...protocol.StateOption) error

StateAtHeight mocks base method.

func (*MockFactory) States

func (m *MockFactory) States(arg0 ...protocol.StateOption) (uint64, state.Iterator, error)

States mocks base method.

func (*MockFactory) StatesAtHeight

func (m *MockFactory) StatesAtHeight(arg0 uint64, arg1 ...protocol.StateOption) (state.Iterator, error)

StatesAtHeight mocks base method.

func (*MockFactory) Stop

func (m *MockFactory) Stop(arg0 context.Context) error

Stop mocks base method.

func (*MockFactory) Validate

func (m *MockFactory) Validate(arg0 context.Context, arg1 *block.Block) error

Validate mocks base method.

type MockFactoryMockRecorder

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

MockFactoryMockRecorder is the mock recorder for MockFactory.

func (*MockFactoryMockRecorder) DeleteTipBlock

func (mr *MockFactoryMockRecorder) DeleteTipBlock(arg0, arg1 interface{}) *gomock.Call

DeleteTipBlock indicates an expected call of DeleteTipBlock.

func (*MockFactoryMockRecorder) Height

func (mr *MockFactoryMockRecorder) Height() *gomock.Call

Height indicates an expected call of Height.

func (*MockFactoryMockRecorder) NewBlockBuilder

func (mr *MockFactoryMockRecorder) NewBlockBuilder(arg0, arg1, arg2 interface{}) *gomock.Call

NewBlockBuilder indicates an expected call of NewBlockBuilder.

func (*MockFactoryMockRecorder) PutBlock

func (mr *MockFactoryMockRecorder) PutBlock(arg0, arg1 interface{}) *gomock.Call

PutBlock indicates an expected call of PutBlock.

func (*MockFactoryMockRecorder) ReadContractStorage

func (mr *MockFactoryMockRecorder) ReadContractStorage(arg0, arg1, arg2 interface{}) *gomock.Call

ReadContractStorage indicates an expected call of ReadContractStorage.

func (*MockFactoryMockRecorder) ReadView

func (mr *MockFactoryMockRecorder) ReadView(arg0 interface{}) *gomock.Call

ReadView indicates an expected call of ReadView.

func (*MockFactoryMockRecorder) Register

func (mr *MockFactoryMockRecorder) Register(arg0 interface{}) *gomock.Call

Register indicates an expected call of Register.

func (*MockFactoryMockRecorder) SimulateExecution

func (mr *MockFactoryMockRecorder) SimulateExecution(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

SimulateExecution indicates an expected call of SimulateExecution.

func (*MockFactoryMockRecorder) Start

func (mr *MockFactoryMockRecorder) Start(arg0 interface{}) *gomock.Call

Start indicates an expected call of Start.

func (*MockFactoryMockRecorder) State

func (mr *MockFactoryMockRecorder) State(arg0 interface{}, arg1 ...interface{}) *gomock.Call

State indicates an expected call of State.

func (*MockFactoryMockRecorder) StateAtHeight

func (mr *MockFactoryMockRecorder) StateAtHeight(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

StateAtHeight indicates an expected call of StateAtHeight.

func (*MockFactoryMockRecorder) States

func (mr *MockFactoryMockRecorder) States(arg0 ...interface{}) *gomock.Call

States indicates an expected call of States.

func (*MockFactoryMockRecorder) StatesAtHeight

func (mr *MockFactoryMockRecorder) StatesAtHeight(arg0 interface{}, arg1 ...interface{}) *gomock.Call

StatesAtHeight indicates an expected call of StatesAtHeight.

func (*MockFactoryMockRecorder) Stop

func (mr *MockFactoryMockRecorder) Stop(arg0 interface{}) *gomock.Call

Stop indicates an expected call of Stop.

func (*MockFactoryMockRecorder) Validate

func (mr *MockFactoryMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call

Validate indicates an expected call of Validate.

Jump to

Keyboard shortcuts

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