Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockBlockCache
- func (m *MockBlockCache) Add(arg0 *block.Block) *blockcache.BlockCacheNode
- func (m *MockBlockCache) AddGenesis(arg0 *block.Block)
- func (m *MockBlockCache) AddNodeToWAL(arg0 *blockcache.BlockCacheNode)
- func (m *MockBlockCache) Del(arg0 *blockcache.BlockCacheNode)
- func (m *MockBlockCache) Draw() string
- func (m *MockBlockCache) EXPECT() *MockBlockCacheMockRecorder
- func (m *MockBlockCache) GetBlockByHash(arg0 []byte) (*block.Block, error)
- func (m *MockBlockCache) GetBlockByNumber(arg0 int64) (*block.Block, error)
- func (m *MockBlockCache) Head() *blockcache.BlockCacheNode
- func (m *MockBlockCache) Link(arg0 *blockcache.BlockCacheNode)
- func (m *MockBlockCache) LinkedRoot() *blockcache.BlockCacheNode
- func (m *MockBlockCache) Recover(arg0 blockcache.ConAlgo) error
- func (m *MockBlockCache) UpdateLib(arg0 *blockcache.BlockCacheNode)
- type MockBlockCacheMockRecorder
- func (mr *MockBlockCacheMockRecorder) Add(arg0 interface{}) *gomock.Call
- func (mr *MockBlockCacheMockRecorder) AddGenesis(arg0 interface{}) *gomock.Call
- func (mr *MockBlockCacheMockRecorder) AddNodeToWAL(arg0 interface{}) *gomock.Call
- func (mr *MockBlockCacheMockRecorder) Del(arg0 interface{}) *gomock.Call
- func (mr *MockBlockCacheMockRecorder) Draw() *gomock.Call
- func (mr *MockBlockCacheMockRecorder) GetBlockByHash(arg0 interface{}) *gomock.Call
- func (mr *MockBlockCacheMockRecorder) GetBlockByNumber(arg0 interface{}) *gomock.Call
- func (mr *MockBlockCacheMockRecorder) Head() *gomock.Call
- func (mr *MockBlockCacheMockRecorder) Link(arg0 interface{}) *gomock.Call
- func (mr *MockBlockCacheMockRecorder) LinkedRoot() *gomock.Call
- func (mr *MockBlockCacheMockRecorder) Recover(arg0 interface{}) *gomock.Call
- func (mr *MockBlockCacheMockRecorder) UpdateLib(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBlockCache ¶
type MockBlockCache struct {
// contains filtered or unexported fields
}
MockBlockCache is a mock of BlockCache interface
func NewMockBlockCache ¶
func NewMockBlockCache(ctrl *gomock.Controller) *MockBlockCache
NewMockBlockCache creates a new mock instance
func (*MockBlockCache) Add ¶
func (m *MockBlockCache) Add(arg0 *block.Block) *blockcache.BlockCacheNode
Add mocks base method
func (*MockBlockCache) AddGenesis ¶
func (m *MockBlockCache) AddGenesis(arg0 *block.Block)
AddGenesis mocks base method
func (*MockBlockCache) AddNodeToWAL ¶
func (m *MockBlockCache) AddNodeToWAL(arg0 *blockcache.BlockCacheNode)
AddNodeToWAL mocks base method
func (*MockBlockCache) Del ¶
func (m *MockBlockCache) Del(arg0 *blockcache.BlockCacheNode)
Del mocks base method
func (*MockBlockCache) EXPECT ¶
func (m *MockBlockCache) EXPECT() *MockBlockCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBlockCache) GetBlockByHash ¶
func (m *MockBlockCache) GetBlockByHash(arg0 []byte) (*block.Block, error)
GetBlockByHash mocks base method
func (*MockBlockCache) GetBlockByNumber ¶
func (m *MockBlockCache) GetBlockByNumber(arg0 int64) (*block.Block, error)
GetBlockByNumber mocks base method
func (*MockBlockCache) Head ¶
func (m *MockBlockCache) Head() *blockcache.BlockCacheNode
Head mocks base method
func (*MockBlockCache) Link ¶
func (m *MockBlockCache) Link(arg0 *blockcache.BlockCacheNode)
Link mocks base method
func (*MockBlockCache) LinkedRoot ¶
func (m *MockBlockCache) LinkedRoot() *blockcache.BlockCacheNode
LinkedRoot mocks base method
func (*MockBlockCache) Recover ¶
func (m *MockBlockCache) Recover(arg0 blockcache.ConAlgo) error
Recover mocks base method
func (*MockBlockCache) UpdateLib ¶
func (m *MockBlockCache) UpdateLib(arg0 *blockcache.BlockCacheNode)
UpdateLib mocks base method
type MockBlockCacheMockRecorder ¶
type MockBlockCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockCacheMockRecorder is the mock recorder for MockBlockCache
func (*MockBlockCacheMockRecorder) Add ¶
func (mr *MockBlockCacheMockRecorder) Add(arg0 interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockBlockCacheMockRecorder) AddGenesis ¶
func (mr *MockBlockCacheMockRecorder) AddGenesis(arg0 interface{}) *gomock.Call
AddGenesis indicates an expected call of AddGenesis
func (*MockBlockCacheMockRecorder) AddNodeToWAL ¶
func (mr *MockBlockCacheMockRecorder) AddNodeToWAL(arg0 interface{}) *gomock.Call
AddNodeToWAL indicates an expected call of AddNodeToWAL
func (*MockBlockCacheMockRecorder) Del ¶
func (mr *MockBlockCacheMockRecorder) Del(arg0 interface{}) *gomock.Call
Del indicates an expected call of Del
func (*MockBlockCacheMockRecorder) Draw ¶
func (mr *MockBlockCacheMockRecorder) Draw() *gomock.Call
Draw indicates an expected call of Draw
func (*MockBlockCacheMockRecorder) GetBlockByHash ¶
func (mr *MockBlockCacheMockRecorder) GetBlockByHash(arg0 interface{}) *gomock.Call
GetBlockByHash indicates an expected call of GetBlockByHash
func (*MockBlockCacheMockRecorder) GetBlockByNumber ¶
func (mr *MockBlockCacheMockRecorder) GetBlockByNumber(arg0 interface{}) *gomock.Call
GetBlockByNumber indicates an expected call of GetBlockByNumber
func (*MockBlockCacheMockRecorder) Head ¶
func (mr *MockBlockCacheMockRecorder) Head() *gomock.Call
Head indicates an expected call of Head
func (*MockBlockCacheMockRecorder) Link ¶
func (mr *MockBlockCacheMockRecorder) Link(arg0 interface{}) *gomock.Call
Link indicates an expected call of Link
func (*MockBlockCacheMockRecorder) LinkedRoot ¶
func (mr *MockBlockCacheMockRecorder) LinkedRoot() *gomock.Call
LinkedRoot indicates an expected call of LinkedRoot
func (*MockBlockCacheMockRecorder) Recover ¶
func (mr *MockBlockCacheMockRecorder) Recover(arg0 interface{}) *gomock.Call
Recover indicates an expected call of Recover
func (*MockBlockCacheMockRecorder) UpdateLib ¶
func (mr *MockBlockCacheMockRecorder) UpdateLib(arg0 interface{}) *gomock.Call
UpdateLib indicates an expected call of UpdateLib