Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockconStateCache
- type MockconStateCacheMockRecorder
- type MockconservativeState
- func (m *MockconservativeState) AddToCache(arg0 context.Context, arg1 *types.Transaction) error
- func (m *MockconservativeState) AddToDB(arg0 *types.Transaction) error
- func (m *MockconservativeState) EXPECT() *MockconservativeStateMockRecorder
- func (m *MockconservativeState) GetMeshTransaction(arg0 types.TransactionID) (*types.MeshTransaction, error)
- func (m *MockconservativeState) HasTx(arg0 types.TransactionID) (bool, error)
- func (m *MockconservativeState) Validation(arg0 types.RawTx) system.ValidationRequest
- type MockconservativeStateMockRecorder
- func (mr *MockconservativeStateMockRecorder) AddToCache(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockconservativeStateMockRecorder) AddToDB(arg0 interface{}) *gomock.Call
- func (mr *MockconservativeStateMockRecorder) GetMeshTransaction(arg0 interface{}) *gomock.Call
- func (mr *MockconservativeStateMockRecorder) HasTx(arg0 interface{}) *gomock.Call
- func (mr *MockconservativeStateMockRecorder) Validation(arg0 interface{}) *gomock.Call
- type MocktxGetter
- type MocktxGetterMockRecorder
- type MockvmState
- func (m *MockvmState) Apply(arg0 vm.ApplyContext, arg1 []types.Transaction, arg2 []types.AnyReward) ([]types.Transaction, []types.TransactionWithResult, error)
- func (m *MockvmState) EXPECT() *MockvmStateMockRecorder
- func (m *MockvmState) GetAllAccounts() ([]*types.Account, error)
- func (m *MockvmState) GetBalance(arg0 types.Address) (uint64, error)
- func (m *MockvmState) GetLayerApplied(arg0 types.TransactionID) (types.LayerID, error)
- func (m *MockvmState) GetLayerStateRoot(arg0 types.LayerID) (types.Hash32, error)
- func (m *MockvmState) GetNonce(arg0 types.Address) (types.Nonce, error)
- func (m *MockvmState) GetStateRoot() (types.Hash32, error)
- func (m *MockvmState) Revert(arg0 types.LayerID) error
- func (m *MockvmState) Validation(arg0 types.RawTx) system.ValidationRequest
- type MockvmStateMockRecorder
- func (mr *MockvmStateMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockvmStateMockRecorder) GetAllAccounts() *gomock.Call
- func (mr *MockvmStateMockRecorder) GetBalance(arg0 interface{}) *gomock.Call
- func (mr *MockvmStateMockRecorder) GetLayerApplied(arg0 interface{}) *gomock.Call
- func (mr *MockvmStateMockRecorder) GetLayerStateRoot(arg0 interface{}) *gomock.Call
- func (mr *MockvmStateMockRecorder) GetNonce(arg0 interface{}) *gomock.Call
- func (mr *MockvmStateMockRecorder) GetStateRoot() *gomock.Call
- func (mr *MockvmStateMockRecorder) Revert(arg0 interface{}) *gomock.Call
- func (mr *MockvmStateMockRecorder) Validation(arg0 interface{}) *gomock.Call
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 ¶
func (m *MockconStateCache) EXPECT() *MockconStateCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockconStateCache) GetMempool ¶
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 ¶
func (m *MockconservativeState) EXPECT() *MockconservativeStateMockRecorder
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 ¶
func (m *MockconservativeState) HasTx(arg0 types.TransactionID) (bool, error)
HasTx mocks base method.
func (*MockconservativeState) Validation ¶
func (m *MockconservativeState) Validation(arg0 types.RawTx) system.ValidationRequest
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 ¶
func (m *MocktxGetter) EXPECT() *MocktxGetterMockRecorder
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 ¶
func (m *MockvmState) Apply(arg0 vm.ApplyContext, arg1 []types.Transaction, arg2 []types.AnyReward) ([]types.Transaction, []types.TransactionWithResult, error)
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 ¶
GetLayerStateRoot 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.