mocks

package
v0.2.20-beta.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

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 MockconStateCache

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

MockconStateCache is a mock of conStateCache interface.

func NewMockconStateCache

func NewMockconStateCache(ctrl *gomock.Controller) *MockconStateCache

NewMockconStateCache creates a new mock instance.

func (*MockconStateCache) EXPECT

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

func (*MockconStateCache) GetMempool

func (m *MockconStateCache) GetMempool(arg0 log.Log) map[types.Address][]*types0.NanoTX

GetMempool mocks base method.

type MockconStateCacheMockRecorder

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

MockconStateCacheMockRecorder is the mock recorder for MockconStateCache.

func (*MockconStateCacheMockRecorder) GetMempool

func (mr *MockconStateCacheMockRecorder) GetMempool(arg0 interface{}) *gomock.Call

GetMempool indicates an expected call of GetMempool.

type MockconservativeState

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

MockconservativeState is a mock of conservativeState interface.

func NewMockconservativeState

func NewMockconservativeState(ctrl *gomock.Controller) *MockconservativeState

NewMockconservativeState creates a new mock instance.

func (*MockconservativeState) AddToCache

func (m *MockconservativeState) AddToCache(arg0 context.Context, arg1 *types.Transaction) error

AddToCache mocks base method.

func (*MockconservativeState) AddToDB

func (m *MockconservativeState) AddToDB(arg0 *types.Transaction) error

AddToDB mocks base method.

func (*MockconservativeState) EXPECT

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

func (*MockconservativeState) GetMeshTransaction

func (m *MockconservativeState) GetMeshTransaction(arg0 types.TransactionID) (*types.MeshTransaction, error)

GetMeshTransaction mocks base method.

func (*MockconservativeState) HasTx

HasTx mocks base method.

func (*MockconservativeState) Validation

Validation mocks base method.

type MockconservativeStateMockRecorder

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

MockconservativeStateMockRecorder is the mock recorder for MockconservativeState.

func (*MockconservativeStateMockRecorder) AddToCache

func (mr *MockconservativeStateMockRecorder) AddToCache(arg0, arg1 interface{}) *gomock.Call

AddToCache indicates an expected call of AddToCache.

func (*MockconservativeStateMockRecorder) AddToDB

func (mr *MockconservativeStateMockRecorder) AddToDB(arg0 interface{}) *gomock.Call

AddToDB indicates an expected call of AddToDB.

func (*MockconservativeStateMockRecorder) GetMeshTransaction

func (mr *MockconservativeStateMockRecorder) GetMeshTransaction(arg0 interface{}) *gomock.Call

GetMeshTransaction indicates an expected call of GetMeshTransaction.

func (*MockconservativeStateMockRecorder) HasTx

func (mr *MockconservativeStateMockRecorder) HasTx(arg0 interface{}) *gomock.Call

HasTx indicates an expected call of HasTx.

func (*MockconservativeStateMockRecorder) Validation

func (mr *MockconservativeStateMockRecorder) Validation(arg0 interface{}) *gomock.Call

Validation indicates an expected call of Validation.

type MocktxGetter

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

MocktxGetter is a mock of txGetter interface.

func NewMocktxGetter

func NewMocktxGetter(ctrl *gomock.Controller) *MocktxGetter

NewMocktxGetter creates a new mock instance.

func (*MocktxGetter) EXPECT

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

func (*MocktxGetter) GetMeshTransaction

func (m *MocktxGetter) GetMeshTransaction(arg0 types.TransactionID) (*types.MeshTransaction, error)

GetMeshTransaction mocks base method.

type MocktxGetterMockRecorder

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

MocktxGetterMockRecorder is the mock recorder for MocktxGetter.

func (*MocktxGetterMockRecorder) GetMeshTransaction

func (mr *MocktxGetterMockRecorder) GetMeshTransaction(arg0 interface{}) *gomock.Call

GetMeshTransaction indicates an expected call of GetMeshTransaction.

type MockvmState

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

MockvmState is a mock of vmState interface.

func NewMockvmState

func NewMockvmState(ctrl *gomock.Controller) *MockvmState

NewMockvmState creates a new mock instance.

func (*MockvmState) Apply

Apply mocks base method.

func (*MockvmState) EXPECT

func (m *MockvmState) EXPECT() *MockvmStateMockRecorder

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

func (*MockvmState) GetAllAccounts

func (m *MockvmState) GetAllAccounts() ([]*types.Account, error)

GetAllAccounts mocks base method.

func (*MockvmState) GetBalance

func (m *MockvmState) GetBalance(arg0 types.Address) (uint64, error)

GetBalance mocks base method.

func (*MockvmState) GetLayerApplied

func (m *MockvmState) GetLayerApplied(arg0 types.TransactionID) (types.LayerID, error)

GetLayerApplied mocks base method.

func (*MockvmState) GetLayerStateRoot

func (m *MockvmState) GetLayerStateRoot(arg0 types.LayerID) (types.Hash32, error)

GetLayerStateRoot mocks base method.

func (*MockvmState) GetNonce

func (m *MockvmState) GetNonce(arg0 types.Address) (types.Nonce, error)

GetNonce mocks base method.

func (*MockvmState) GetStateRoot

func (m *MockvmState) GetStateRoot() (types.Hash32, error)

GetStateRoot mocks base method.

func (*MockvmState) Revert

func (m *MockvmState) Revert(arg0 types.LayerID) error

Revert mocks base method.

func (*MockvmState) Validation

func (m *MockvmState) Validation(arg0 types.RawTx) system.ValidationRequest

Validation mocks base method.

type MockvmStateMockRecorder

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

MockvmStateMockRecorder is the mock recorder for MockvmState.

func (*MockvmStateMockRecorder) Apply

func (mr *MockvmStateMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call

Apply indicates an expected call of Apply.

func (*MockvmStateMockRecorder) GetAllAccounts

func (mr *MockvmStateMockRecorder) GetAllAccounts() *gomock.Call

GetAllAccounts indicates an expected call of GetAllAccounts.

func (*MockvmStateMockRecorder) GetBalance

func (mr *MockvmStateMockRecorder) GetBalance(arg0 interface{}) *gomock.Call

GetBalance indicates an expected call of GetBalance.

func (*MockvmStateMockRecorder) GetLayerApplied

func (mr *MockvmStateMockRecorder) GetLayerApplied(arg0 interface{}) *gomock.Call

GetLayerApplied indicates an expected call of GetLayerApplied.

func (*MockvmStateMockRecorder) GetLayerStateRoot

func (mr *MockvmStateMockRecorder) GetLayerStateRoot(arg0 interface{}) *gomock.Call

GetLayerStateRoot indicates an expected call of GetLayerStateRoot.

func (*MockvmStateMockRecorder) GetNonce

func (mr *MockvmStateMockRecorder) GetNonce(arg0 interface{}) *gomock.Call

GetNonce indicates an expected call of GetNonce.

func (*MockvmStateMockRecorder) GetStateRoot

func (mr *MockvmStateMockRecorder) GetStateRoot() *gomock.Call

GetStateRoot indicates an expected call of GetStateRoot.

func (*MockvmStateMockRecorder) Revert

func (mr *MockvmStateMockRecorder) Revert(arg0 interface{}) *gomock.Call

Revert indicates an expected call of Revert.

func (*MockvmStateMockRecorder) Validation

func (mr *MockvmStateMockRecorder) Validation(arg0 interface{}) *gomock.Call

Validation indicates an expected call of Validation.

Jump to

Keyboard shortcuts

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