Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockBlockApi
- func (m *MockBlockApi) EXPECT() *MockBlockApiMockRecorder
- func (m *MockBlockApi) ExistTxid(block *types.Block, txid string) (bool, error)
- func (m *MockBlockApi) GetHeaderData(block *types.Block) (string, *types.BlockHeader, error)
- func (m *MockBlockApi) GetTransactionData(block *types.Block, txid string) (*types.Transaction, *types.ByteData, error)
- func (m *MockBlockApi) GetTxCount(block *types.Block) (uint32, error)
- func (m *MockBlockApi) GetTxidList(block *types.Block) ([]string, error)
- type MockBlockApiMockRecorder
- func (mr *MockBlockApiMockRecorder) ExistTxid(block, txid interface{}) *gomock.Call
- func (mr *MockBlockApiMockRecorder) GetHeaderData(block interface{}) *gomock.Call
- func (mr *MockBlockApiMockRecorder) GetTransactionData(block, txid interface{}) *gomock.Call
- func (mr *MockBlockApiMockRecorder) GetTxCount(block interface{}) *gomock.Call
- func (mr *MockBlockApiMockRecorder) GetTxidList(block interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBlockApi ¶
type MockBlockApi struct {
// contains filtered or unexported fields
}
MockBlockApi is a mock of BlockApi interface.
func NewMockBlockApi ¶
func NewMockBlockApi(ctrl *gomock.Controller) *MockBlockApi
NewMockBlockApi creates a new mock instance.
func (*MockBlockApi) EXPECT ¶
func (m *MockBlockApi) EXPECT() *MockBlockApiMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBlockApi) GetHeaderData ¶
func (m *MockBlockApi) GetHeaderData(block *types.Block) (string, *types.BlockHeader, error)
GetHeaderData mocks base method.
func (*MockBlockApi) GetTransactionData ¶
func (m *MockBlockApi) GetTransactionData(block *types.Block, txid string) (*types.Transaction, *types.ByteData, error)
GetTransactionData mocks base method.
func (*MockBlockApi) GetTxCount ¶
func (m *MockBlockApi) GetTxCount(block *types.Block) (uint32, error)
GetTxCount mocks base method.
func (*MockBlockApi) GetTxidList ¶
func (m *MockBlockApi) GetTxidList(block *types.Block) ([]string, error)
GetTxidList mocks base method.
type MockBlockApiMockRecorder ¶
type MockBlockApiMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockApiMockRecorder is the mock recorder for MockBlockApi.
func (*MockBlockApiMockRecorder) ExistTxid ¶
func (mr *MockBlockApiMockRecorder) ExistTxid(block, txid interface{}) *gomock.Call
ExistTxid indicates an expected call of ExistTxid.
func (*MockBlockApiMockRecorder) GetHeaderData ¶
func (mr *MockBlockApiMockRecorder) GetHeaderData(block interface{}) *gomock.Call
GetHeaderData indicates an expected call of GetHeaderData.
func (*MockBlockApiMockRecorder) GetTransactionData ¶
func (mr *MockBlockApiMockRecorder) GetTransactionData(block, txid interface{}) *gomock.Call
GetTransactionData indicates an expected call of GetTransactionData.
func (*MockBlockApiMockRecorder) GetTxCount ¶
func (mr *MockBlockApiMockRecorder) GetTxCount(block interface{}) *gomock.Call
GetTxCount indicates an expected call of GetTxCount.
func (*MockBlockApiMockRecorder) GetTxidList ¶
func (mr *MockBlockApiMockRecorder) GetTxidList(block interface{}) *gomock.Call
GetTxidList indicates an expected call of GetTxidList.