Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockExternal
- func (m *MockExternal) Broadcast(arg0 *inter.EventPayload)
- func (m *MockExternal) Build(arg0 *inter.MutableEventPayload, arg1 func()) error
- func (m *MockExternal) Check(arg0 *inter.EventPayload, arg1 inter.Events) error
- func (m *MockExternal) DagIndex() *vecmt.Index
- func (m *MockExternal) EXPECT() *MockExternalMockRecorder
- func (m *MockExternal) GetEpochValidators() (*pos.Validators, idx.Epoch)
- func (m *MockExternal) GetEvent(arg0 hash.Event) *inter.Event
- func (m *MockExternal) GetEventPayload(arg0 hash.Event) *inter.EventPayload
- func (m *MockExternal) GetGenesisTime() inter.Timestamp
- func (m *MockExternal) GetHeads(arg0 idx.Epoch) hash.Events
- func (m *MockExternal) GetLastEvent(arg0 idx.Epoch, arg1 idx.ValidatorID) *hash.Event
- func (m *MockExternal) GetLatestBlockIndex() idx.Block
- func (m *MockExternal) GetRecommendedGasPrice() *big.Int
- func (m *MockExternal) GetRules() opera.Rules
- func (m *MockExternal) IsBusy() bool
- func (m *MockExternal) IsSynced() bool
- func (m *MockExternal) Lock()
- func (m *MockExternal) PeersNum() int
- func (m *MockExternal) Process(arg0 *inter.EventPayload) error
- func (m *MockExternal) Unlock()
- type MockExternalMockRecorder
- func (mr *MockExternalMockRecorder) Broadcast(arg0 interface{}) *gomock.Call
- func (mr *MockExternalMockRecorder) Build(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockExternalMockRecorder) Check(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockExternalMockRecorder) DagIndex() *gomock.Call
- func (mr *MockExternalMockRecorder) GetEpochValidators() *gomock.Call
- func (mr *MockExternalMockRecorder) GetEvent(arg0 interface{}) *gomock.Call
- func (mr *MockExternalMockRecorder) GetEventPayload(arg0 interface{}) *gomock.Call
- func (mr *MockExternalMockRecorder) GetGenesisTime() *gomock.Call
- func (mr *MockExternalMockRecorder) GetHeads(arg0 interface{}) *gomock.Call
- func (mr *MockExternalMockRecorder) GetLastEvent(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockExternalMockRecorder) GetLatestBlockIndex() *gomock.Call
- func (mr *MockExternalMockRecorder) GetRecommendedGasPrice() *gomock.Call
- func (mr *MockExternalMockRecorder) GetRules() *gomock.Call
- func (mr *MockExternalMockRecorder) IsBusy() *gomock.Call
- func (mr *MockExternalMockRecorder) IsSynced() *gomock.Call
- func (mr *MockExternalMockRecorder) Lock() *gomock.Call
- func (mr *MockExternalMockRecorder) PeersNum() *gomock.Call
- func (mr *MockExternalMockRecorder) Process(arg0 interface{}) *gomock.Call
- func (mr *MockExternalMockRecorder) Unlock() *gomock.Call
- type MockSigner
- type MockSignerMockRecorder
- type MockTxPool
- func (m *MockTxPool) Count() int
- func (m *MockTxPool) EXPECT() *MockTxPoolMockRecorder
- func (m *MockTxPool) Has(arg0 common.Hash) bool
- func (m *MockTxPool) Pending() (map[common.Address]types.Transactions, error)
- func (m *MockTxPool) SubscribeNewTxsNotify(arg0 chan<- evmcore.NewTxsNotify) event.Subscription
- type MockTxPoolMockRecorder
- type MockTxSigner
- func (m *MockTxSigner) ChainID() *big.Int
- func (m *MockTxSigner) EXPECT() *MockTxSignerMockRecorder
- func (m *MockTxSigner) Equal(arg0 types.Signer) bool
- func (m *MockTxSigner) Hash(arg0 *types.Transaction) common.Hash
- func (m *MockTxSigner) Sender(arg0 *types.Transaction) (common.Address, error)
- func (m *MockTxSigner) SignatureValues(arg0 *types.Transaction, arg1 []byte) (*big.Int, *big.Int, *big.Int, error)
- type MockTxSignerMockRecorder
- func (mr *MockTxSignerMockRecorder) ChainID() *gomock.Call
- func (mr *MockTxSignerMockRecorder) Equal(arg0 interface{}) *gomock.Call
- func (mr *MockTxSignerMockRecorder) Hash(arg0 interface{}) *gomock.Call
- func (mr *MockTxSignerMockRecorder) Sender(arg0 interface{}) *gomock.Call
- func (mr *MockTxSignerMockRecorder) SignatureValues(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockExternal ¶
type MockExternal struct {
// contains filtered or unexported fields
}
MockExternal is a mock of External interface
func NewMockExternal ¶
func NewMockExternal(ctrl *gomock.Controller) *MockExternal
NewMockExternal creates a new mock instance
func (*MockExternal) Broadcast ¶
func (m *MockExternal) Broadcast(arg0 *inter.EventPayload)
Broadcast mocks base method
func (*MockExternal) Build ¶
func (m *MockExternal) Build(arg0 *inter.MutableEventPayload, arg1 func()) error
Build mocks base method
func (*MockExternal) Check ¶
func (m *MockExternal) Check(arg0 *inter.EventPayload, arg1 inter.Events) error
Check mocks base method
func (*MockExternal) DagIndex ¶
func (m *MockExternal) DagIndex() *vecmt.Index
DagIndex mocks base method
func (*MockExternal) EXPECT ¶
func (m *MockExternal) EXPECT() *MockExternalMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockExternal) GetEpochValidators ¶
func (m *MockExternal) GetEpochValidators() (*pos.Validators, idx.Epoch)
GetEpochValidators mocks base method
func (*MockExternal) GetEvent ¶
func (m *MockExternal) GetEvent(arg0 hash.Event) *inter.Event
GetEvent mocks base method
func (*MockExternal) GetEventPayload ¶
func (m *MockExternal) GetEventPayload(arg0 hash.Event) *inter.EventPayload
GetEventPayload mocks base method
func (*MockExternal) GetGenesisTime ¶
func (m *MockExternal) GetGenesisTime() inter.Timestamp
GetGenesisTime mocks base method
func (*MockExternal) GetHeads ¶
func (m *MockExternal) GetHeads(arg0 idx.Epoch) hash.Events
GetHeads mocks base method
func (*MockExternal) GetLastEvent ¶
func (m *MockExternal) GetLastEvent(arg0 idx.Epoch, arg1 idx.ValidatorID) *hash.Event
GetLastEvent mocks base method
func (*MockExternal) GetLatestBlockIndex ¶
func (m *MockExternal) GetLatestBlockIndex() idx.Block
GetLatestBlockIndex mocks base method
func (*MockExternal) GetRecommendedGasPrice ¶
func (m *MockExternal) GetRecommendedGasPrice() *big.Int
GetRecommendedGasPrice mocks base method
func (*MockExternal) GetRules ¶
func (m *MockExternal) GetRules() opera.Rules
GetRules mocks base method
func (*MockExternal) Process ¶
func (m *MockExternal) Process(arg0 *inter.EventPayload) error
Process mocks base method
type MockExternalMockRecorder ¶
type MockExternalMockRecorder struct {
// contains filtered or unexported fields
}
MockExternalMockRecorder is the mock recorder for MockExternal
func (*MockExternalMockRecorder) Broadcast ¶
func (mr *MockExternalMockRecorder) Broadcast(arg0 interface{}) *gomock.Call
Broadcast indicates an expected call of Broadcast
func (*MockExternalMockRecorder) Build ¶
func (mr *MockExternalMockRecorder) Build(arg0, arg1 interface{}) *gomock.Call
Build indicates an expected call of Build
func (*MockExternalMockRecorder) Check ¶
func (mr *MockExternalMockRecorder) Check(arg0, arg1 interface{}) *gomock.Call
Check indicates an expected call of Check
func (*MockExternalMockRecorder) DagIndex ¶
func (mr *MockExternalMockRecorder) DagIndex() *gomock.Call
DagIndex indicates an expected call of DagIndex
func (*MockExternalMockRecorder) GetEpochValidators ¶
func (mr *MockExternalMockRecorder) GetEpochValidators() *gomock.Call
GetEpochValidators indicates an expected call of GetEpochValidators
func (*MockExternalMockRecorder) GetEvent ¶
func (mr *MockExternalMockRecorder) GetEvent(arg0 interface{}) *gomock.Call
GetEvent indicates an expected call of GetEvent
func (*MockExternalMockRecorder) GetEventPayload ¶
func (mr *MockExternalMockRecorder) GetEventPayload(arg0 interface{}) *gomock.Call
GetEventPayload indicates an expected call of GetEventPayload
func (*MockExternalMockRecorder) GetGenesisTime ¶
func (mr *MockExternalMockRecorder) GetGenesisTime() *gomock.Call
GetGenesisTime indicates an expected call of GetGenesisTime
func (*MockExternalMockRecorder) GetHeads ¶
func (mr *MockExternalMockRecorder) GetHeads(arg0 interface{}) *gomock.Call
GetHeads indicates an expected call of GetHeads
func (*MockExternalMockRecorder) GetLastEvent ¶
func (mr *MockExternalMockRecorder) GetLastEvent(arg0, arg1 interface{}) *gomock.Call
GetLastEvent indicates an expected call of GetLastEvent
func (*MockExternalMockRecorder) GetLatestBlockIndex ¶
func (mr *MockExternalMockRecorder) GetLatestBlockIndex() *gomock.Call
GetLatestBlockIndex indicates an expected call of GetLatestBlockIndex
func (*MockExternalMockRecorder) GetRecommendedGasPrice ¶
func (mr *MockExternalMockRecorder) GetRecommendedGasPrice() *gomock.Call
GetRecommendedGasPrice indicates an expected call of GetRecommendedGasPrice
func (*MockExternalMockRecorder) GetRules ¶
func (mr *MockExternalMockRecorder) GetRules() *gomock.Call
GetRules indicates an expected call of GetRules
func (*MockExternalMockRecorder) IsBusy ¶
func (mr *MockExternalMockRecorder) IsBusy() *gomock.Call
IsBusy indicates an expected call of IsBusy
func (*MockExternalMockRecorder) IsSynced ¶
func (mr *MockExternalMockRecorder) IsSynced() *gomock.Call
IsSynced indicates an expected call of IsSynced
func (*MockExternalMockRecorder) Lock ¶
func (mr *MockExternalMockRecorder) Lock() *gomock.Call
Lock indicates an expected call of Lock
func (*MockExternalMockRecorder) PeersNum ¶
func (mr *MockExternalMockRecorder) PeersNum() *gomock.Call
PeersNum indicates an expected call of PeersNum
func (*MockExternalMockRecorder) Process ¶
func (mr *MockExternalMockRecorder) Process(arg0 interface{}) *gomock.Call
Process indicates an expected call of Process
func (*MockExternalMockRecorder) Unlock ¶
func (mr *MockExternalMockRecorder) Unlock() *gomock.Call
Unlock indicates an expected call of Unlock
type MockSigner ¶
type MockSigner struct {
// contains filtered or unexported fields
}
MockSigner is a mock of Signer interface
func NewMockSigner ¶
func NewMockSigner(ctrl *gomock.Controller) *MockSigner
NewMockSigner creates a new mock instance
func (*MockSigner) EXPECT ¶
func (m *MockSigner) EXPECT() *MockSignerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSigner) Sign ¶
func (m *MockSigner) Sign(arg0 validatorpk.PubKey, arg1 []byte) ([]byte, error)
Sign mocks base method
type MockSignerMockRecorder ¶
type MockSignerMockRecorder struct {
// contains filtered or unexported fields
}
MockSignerMockRecorder is the mock recorder for MockSigner
func (*MockSignerMockRecorder) Sign ¶
func (mr *MockSignerMockRecorder) Sign(arg0, arg1 interface{}) *gomock.Call
Sign indicates an expected call of Sign
type MockTxPool ¶
type MockTxPool struct {
// contains filtered or unexported fields
}
MockTxPool is a mock of TxPool interface
func NewMockTxPool ¶
func NewMockTxPool(ctrl *gomock.Controller) *MockTxPool
NewMockTxPool creates a new mock instance
func (*MockTxPool) EXPECT ¶
func (m *MockTxPool) EXPECT() *MockTxPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTxPool) Pending ¶
func (m *MockTxPool) Pending() (map[common.Address]types.Transactions, error)
Pending mocks base method
func (*MockTxPool) SubscribeNewTxsNotify ¶
func (m *MockTxPool) SubscribeNewTxsNotify(arg0 chan<- evmcore.NewTxsNotify) event.Subscription
SubscribeNewTxsNotify mocks base method
type MockTxPoolMockRecorder ¶
type MockTxPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockTxPoolMockRecorder is the mock recorder for MockTxPool
func (*MockTxPoolMockRecorder) Count ¶
func (mr *MockTxPoolMockRecorder) Count() *gomock.Call
Count indicates an expected call of Count
func (*MockTxPoolMockRecorder) Has ¶
func (mr *MockTxPoolMockRecorder) Has(arg0 interface{}) *gomock.Call
Has indicates an expected call of Has
func (*MockTxPoolMockRecorder) Pending ¶
func (mr *MockTxPoolMockRecorder) Pending() *gomock.Call
Pending indicates an expected call of Pending
func (*MockTxPoolMockRecorder) SubscribeNewTxsNotify ¶
func (mr *MockTxPoolMockRecorder) SubscribeNewTxsNotify(arg0 interface{}) *gomock.Call
SubscribeNewTxsNotify indicates an expected call of SubscribeNewTxsNotify
type MockTxSigner ¶
type MockTxSigner struct {
// contains filtered or unexported fields
}
MockTxSigner is a mock of TxSigner interface
func NewMockTxSigner ¶
func NewMockTxSigner(ctrl *gomock.Controller) *MockTxSigner
NewMockTxSigner creates a new mock instance
func (*MockTxSigner) EXPECT ¶
func (m *MockTxSigner) EXPECT() *MockTxSignerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTxSigner) Equal ¶
func (m *MockTxSigner) Equal(arg0 types.Signer) bool
Equal mocks base method
func (*MockTxSigner) Hash ¶
func (m *MockTxSigner) Hash(arg0 *types.Transaction) common.Hash
Hash mocks base method
func (*MockTxSigner) Sender ¶
func (m *MockTxSigner) Sender(arg0 *types.Transaction) (common.Address, error)
Sender mocks base method
func (*MockTxSigner) SignatureValues ¶
func (m *MockTxSigner) SignatureValues(arg0 *types.Transaction, arg1 []byte) (*big.Int, *big.Int, *big.Int, error)
SignatureValues mocks base method
type MockTxSignerMockRecorder ¶
type MockTxSignerMockRecorder struct {
// contains filtered or unexported fields
}
MockTxSignerMockRecorder is the mock recorder for MockTxSigner
func (*MockTxSignerMockRecorder) ChainID ¶
func (mr *MockTxSignerMockRecorder) ChainID() *gomock.Call
ChainID indicates an expected call of ChainID
func (*MockTxSignerMockRecorder) Equal ¶
func (mr *MockTxSignerMockRecorder) Equal(arg0 interface{}) *gomock.Call
Equal indicates an expected call of Equal
func (*MockTxSignerMockRecorder) Hash ¶
func (mr *MockTxSignerMockRecorder) Hash(arg0 interface{}) *gomock.Call
Hash indicates an expected call of Hash
func (*MockTxSignerMockRecorder) Sender ¶
func (mr *MockTxSignerMockRecorder) Sender(arg0 interface{}) *gomock.Call
Sender indicates an expected call of Sender
func (*MockTxSignerMockRecorder) SignatureValues ¶
func (mr *MockTxSignerMockRecorder) SignatureValues(arg0, arg1 interface{}) *gomock.Call
SignatureValues indicates an expected call of SignatureValues