Documentation
¶
Overview ¶
Package mock_agent is a generated GoMock package.
Index ¶
- type MockAgent
- func (m *MockAgent) Appchain() (*rpcx.Appchain, error)
- func (m *MockAgent) EXPECT() *MockAgentMockRecorder
- func (m *MockAgent) GetAssetExchangeSigns(id string) ([]byte, error)
- func (m *MockAgent) GetBlockHeader(ctx context.Context, begin, end uint64, ch chan *pb.BlockHeader) error
- func (m *MockAgent) GetChainMeta() (*pb.ChainMeta, error)
- func (m *MockAgent) GetIBTPByID(id string) (*pb.IBTP, error)
- func (m *MockAgent) GetInterchainMeta() (*rpcx.Interchain, error)
- func (m *MockAgent) GetInterchainTxWrapper(ctx context.Context, begin, end uint64, ch chan *pb.InterchainTxWrapper) error
- func (m *MockAgent) SendIBTP(ibtp *pb.IBTP) (*pb.Receipt, error)
- func (m *MockAgent) SendTransaction(tx *pb.Transaction) (*pb.Receipt, error)
- func (m *MockAgent) SyncBlockHeader(ctx context.Context, ch chan *pb.BlockHeader) error
- func (m *MockAgent) SyncInterchainTxWrapper(ctx context.Context, ch chan *pb.InterchainTxWrapper) error
- type MockAgentMockRecorder
- func (mr *MockAgentMockRecorder) Appchain() *gomock.Call
- func (mr *MockAgentMockRecorder) GetAssetExchangeSigns(id interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) GetBlockHeader(ctx, begin, end, ch interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) GetChainMeta() *gomock.Call
- func (mr *MockAgentMockRecorder) GetIBTPByID(id interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) GetInterchainMeta() *gomock.Call
- func (mr *MockAgentMockRecorder) GetInterchainTxWrapper(ctx, begin, end, ch interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) SendIBTP(ibtp interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) SendTransaction(tx interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) SyncBlockHeader(ctx, ch interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) SyncInterchainTxWrapper(ctx, ch interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAgent ¶
type MockAgent struct {
// contains filtered or unexported fields
}
MockAgent is a mock of Agent interface
func NewMockAgent ¶
func NewMockAgent(ctrl *gomock.Controller) *MockAgent
NewMockAgent creates a new mock instance
func (*MockAgent) EXPECT ¶
func (m *MockAgent) EXPECT() *MockAgentMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAgent) GetAssetExchangeSigns ¶ added in v1.4.0
GetAssetExchangeSigns mocks base method
func (*MockAgent) GetBlockHeader ¶
func (m *MockAgent) GetBlockHeader(ctx context.Context, begin, end uint64, ch chan *pb.BlockHeader) error
GetBlockHeader mocks base method
func (*MockAgent) GetChainMeta ¶
GetChainMeta mocks base method
func (*MockAgent) GetIBTPByID ¶
GetIBTPByID mocks base method
func (*MockAgent) GetInterchainMeta ¶
func (m *MockAgent) GetInterchainMeta() (*rpcx.Interchain, error)
GetInterchainMeta mocks base method
func (*MockAgent) GetInterchainTxWrapper ¶
func (m *MockAgent) GetInterchainTxWrapper(ctx context.Context, begin, end uint64, ch chan *pb.InterchainTxWrapper) error
GetInterchainTxWrapper mocks base method
func (*MockAgent) SendTransaction ¶
SendTransaction mocks base method
func (*MockAgent) SyncBlockHeader ¶
SyncBlockHeader mocks base method
func (*MockAgent) SyncInterchainTxWrapper ¶
func (m *MockAgent) SyncInterchainTxWrapper(ctx context.Context, ch chan *pb.InterchainTxWrapper) error
SyncInterchainTxWrapper mocks base method
type MockAgentMockRecorder ¶
type MockAgentMockRecorder struct {
// contains filtered or unexported fields
}
MockAgentMockRecorder is the mock recorder for MockAgent
func (*MockAgentMockRecorder) Appchain ¶
func (mr *MockAgentMockRecorder) Appchain() *gomock.Call
Appchain indicates an expected call of Appchain
func (*MockAgentMockRecorder) GetAssetExchangeSigns ¶ added in v1.4.0
func (mr *MockAgentMockRecorder) GetAssetExchangeSigns(id interface{}) *gomock.Call
GetAssetExchangeSigns indicates an expected call of GetAssetExchangeSigns
func (*MockAgentMockRecorder) GetBlockHeader ¶
func (mr *MockAgentMockRecorder) GetBlockHeader(ctx, begin, end, ch interface{}) *gomock.Call
GetBlockHeader indicates an expected call of GetBlockHeader
func (*MockAgentMockRecorder) GetChainMeta ¶
func (mr *MockAgentMockRecorder) GetChainMeta() *gomock.Call
GetChainMeta indicates an expected call of GetChainMeta
func (*MockAgentMockRecorder) GetIBTPByID ¶
func (mr *MockAgentMockRecorder) GetIBTPByID(id interface{}) *gomock.Call
GetIBTPByID indicates an expected call of GetIBTPByID
func (*MockAgentMockRecorder) GetInterchainMeta ¶
func (mr *MockAgentMockRecorder) GetInterchainMeta() *gomock.Call
GetInterchainMeta indicates an expected call of GetInterchainMeta
func (*MockAgentMockRecorder) GetInterchainTxWrapper ¶
func (mr *MockAgentMockRecorder) GetInterchainTxWrapper(ctx, begin, end, ch interface{}) *gomock.Call
GetInterchainTxWrapper indicates an expected call of GetInterchainTxWrapper
func (*MockAgentMockRecorder) SendIBTP ¶
func (mr *MockAgentMockRecorder) SendIBTP(ibtp interface{}) *gomock.Call
SendIBTP indicates an expected call of SendIBTP
func (*MockAgentMockRecorder) SendTransaction ¶
func (mr *MockAgentMockRecorder) SendTransaction(tx interface{}) *gomock.Call
SendTransaction indicates an expected call of SendTransaction
func (*MockAgentMockRecorder) SyncBlockHeader ¶
func (mr *MockAgentMockRecorder) SyncBlockHeader(ctx, ch interface{}) *gomock.Call
SyncBlockHeader indicates an expected call of SyncBlockHeader
func (*MockAgentMockRecorder) SyncInterchainTxWrapper ¶
func (mr *MockAgentMockRecorder) SyncInterchainTxWrapper(ctx, ch interface{}) *gomock.Call
SyncInterchainTxWrapper indicates an expected call of SyncInterchainTxWrapper