Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockGRPCAdapter
- func (m *MockGRPCAdapter) CheckTransaction(arg0 context.Context, arg1 *v1.CheckTransactionRequest) (*v1.CheckTransactionResponse, error)
- func (m *MockGRPCAdapter) EXPECT() *MockGRPCAdapterMockRecorder
- func (m *MockGRPCAdapter) Host() string
- func (m *MockGRPCAdapter) LastBlock(arg0 context.Context) (types.LastBlock, error)
- func (m *MockGRPCAdapter) SpamStatistics(arg0 context.Context, arg1 string) (types.SpamStatistics, error)
- func (m *MockGRPCAdapter) Statistics(arg0 context.Context) (types.Statistics, error)
- func (m *MockGRPCAdapter) Stop() error
- func (m *MockGRPCAdapter) SubmitTransaction(arg0 context.Context, arg1 *v1.SubmitTransactionRequest) (*v1.SubmitTransactionResponse, error)
- type MockGRPCAdapterMockRecorder
- func (mr *MockGRPCAdapterMockRecorder) CheckTransaction(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGRPCAdapterMockRecorder) Host() *gomock.Call
- func (mr *MockGRPCAdapterMockRecorder) LastBlock(arg0 interface{}) *gomock.Call
- func (mr *MockGRPCAdapterMockRecorder) SpamStatistics(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGRPCAdapterMockRecorder) Statistics(arg0 interface{}) *gomock.Call
- func (mr *MockGRPCAdapterMockRecorder) Stop() *gomock.Call
- func (mr *MockGRPCAdapterMockRecorder) SubmitTransaction(arg0, arg1 interface{}) *gomock.Call
- type MockNode
- func (m *MockNode) CheckTransaction(arg0 context.Context, arg1 *v10.Transaction) error
- func (m *MockNode) EXPECT() *MockNodeMockRecorder
- func (m *MockNode) Host() string
- func (m *MockNode) LastBlock(arg0 context.Context) (types.LastBlock, error)
- func (m *MockNode) SendTransaction(arg0 context.Context, arg1 *v10.Transaction, ...) (string, error)
- func (m *MockNode) SpamStatistics(arg0 context.Context, arg1 string) (types.SpamStatistics, error)
- func (m *MockNode) Statistics(arg0 context.Context) (types.Statistics, error)
- func (m *MockNode) Stop() error
- type MockNodeMockRecorder
- func (mr *MockNodeMockRecorder) CheckTransaction(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) Host() *gomock.Call
- func (mr *MockNodeMockRecorder) LastBlock(arg0 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) SendTransaction(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) SpamStatistics(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) Statistics(arg0 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) Stop() *gomock.Call
- type MockSelector
- type MockSelectorMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGRPCAdapter ¶ added in v0.62.0
type MockGRPCAdapter struct {
// contains filtered or unexported fields
}
MockGRPCAdapter is a mock of GRPCAdapter interface.
func NewMockGRPCAdapter ¶ added in v0.62.0
func NewMockGRPCAdapter(ctrl *gomock.Controller) *MockGRPCAdapter
NewMockGRPCAdapter creates a new mock instance.
func (*MockGRPCAdapter) CheckTransaction ¶ added in v0.69.0
func (m *MockGRPCAdapter) CheckTransaction(arg0 context.Context, arg1 *v1.CheckTransactionRequest) (*v1.CheckTransactionResponse, error)
CheckTransaction mocks base method.
func (*MockGRPCAdapter) EXPECT ¶ added in v0.62.0
func (m *MockGRPCAdapter) EXPECT() *MockGRPCAdapterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGRPCAdapter) Host ¶ added in v0.62.0
func (m *MockGRPCAdapter) Host() string
Host mocks base method.
func (*MockGRPCAdapter) SpamStatistics ¶ added in v0.68.0
func (m *MockGRPCAdapter) SpamStatistics(arg0 context.Context, arg1 string) (types.SpamStatistics, error)
SpamStatistics mocks base method.
func (*MockGRPCAdapter) Statistics ¶ added in v0.62.0
func (m *MockGRPCAdapter) Statistics(arg0 context.Context) (types.Statistics, error)
Statistics mocks base method.
func (*MockGRPCAdapter) Stop ¶ added in v0.62.0
func (m *MockGRPCAdapter) Stop() error
Stop mocks base method.
func (*MockGRPCAdapter) SubmitTransaction ¶ added in v0.62.0
func (m *MockGRPCAdapter) SubmitTransaction(arg0 context.Context, arg1 *v1.SubmitTransactionRequest) (*v1.SubmitTransactionResponse, error)
SubmitTransaction mocks base method.
type MockGRPCAdapterMockRecorder ¶ added in v0.62.0
type MockGRPCAdapterMockRecorder struct {
// contains filtered or unexported fields
}
MockGRPCAdapterMockRecorder is the mock recorder for MockGRPCAdapter.
func (*MockGRPCAdapterMockRecorder) CheckTransaction ¶ added in v0.69.0
func (mr *MockGRPCAdapterMockRecorder) CheckTransaction(arg0, arg1 interface{}) *gomock.Call
CheckTransaction indicates an expected call of CheckTransaction.
func (*MockGRPCAdapterMockRecorder) Host ¶ added in v0.62.0
func (mr *MockGRPCAdapterMockRecorder) Host() *gomock.Call
Host indicates an expected call of Host.
func (*MockGRPCAdapterMockRecorder) LastBlock ¶ added in v0.62.0
func (mr *MockGRPCAdapterMockRecorder) LastBlock(arg0 interface{}) *gomock.Call
LastBlock indicates an expected call of LastBlock.
func (*MockGRPCAdapterMockRecorder) SpamStatistics ¶ added in v0.68.0
func (mr *MockGRPCAdapterMockRecorder) SpamStatistics(arg0, arg1 interface{}) *gomock.Call
SpamStatistics indicates an expected call of SpamStatistics.
func (*MockGRPCAdapterMockRecorder) Statistics ¶ added in v0.62.0
func (mr *MockGRPCAdapterMockRecorder) Statistics(arg0 interface{}) *gomock.Call
Statistics indicates an expected call of Statistics.
func (*MockGRPCAdapterMockRecorder) Stop ¶ added in v0.62.0
func (mr *MockGRPCAdapterMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockGRPCAdapterMockRecorder) SubmitTransaction ¶ added in v0.62.0
func (mr *MockGRPCAdapterMockRecorder) SubmitTransaction(arg0, arg1 interface{}) *gomock.Call
SubmitTransaction indicates an expected call of SubmitTransaction.
type MockNode ¶ added in v0.56.0
type MockNode struct {
// contains filtered or unexported fields
}
MockNode is a mock of Node interface.
func NewMockNode ¶ added in v0.56.0
func NewMockNode(ctrl *gomock.Controller) *MockNode
NewMockNode creates a new mock instance.
func (*MockNode) CheckTransaction ¶ added in v0.56.0
CheckTransaction mocks base method.
func (*MockNode) EXPECT ¶ added in v0.56.0
func (m *MockNode) EXPECT() *MockNodeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNode) SendTransaction ¶ added in v0.56.0
func (m *MockNode) SendTransaction(arg0 context.Context, arg1 *v10.Transaction, arg2 v1.SubmitTransactionRequest_Type) (string, error)
SendTransaction mocks base method.
func (*MockNode) SpamStatistics ¶ added in v0.68.0
SpamStatistics mocks base method.
func (*MockNode) Statistics ¶ added in v0.62.0
Statistics mocks base method.
type MockNodeMockRecorder ¶ added in v0.56.0
type MockNodeMockRecorder struct {
// contains filtered or unexported fields
}
MockNodeMockRecorder is the mock recorder for MockNode.
func (*MockNodeMockRecorder) CheckTransaction ¶ added in v0.56.0
func (mr *MockNodeMockRecorder) CheckTransaction(arg0, arg1 interface{}) *gomock.Call
CheckTransaction indicates an expected call of CheckTransaction.
func (*MockNodeMockRecorder) Host ¶ added in v0.56.0
func (mr *MockNodeMockRecorder) Host() *gomock.Call
Host indicates an expected call of Host.
func (*MockNodeMockRecorder) LastBlock ¶ added in v0.56.0
func (mr *MockNodeMockRecorder) LastBlock(arg0 interface{}) *gomock.Call
LastBlock indicates an expected call of LastBlock.
func (*MockNodeMockRecorder) SendTransaction ¶ added in v0.56.0
func (mr *MockNodeMockRecorder) SendTransaction(arg0, arg1, arg2 interface{}) *gomock.Call
SendTransaction indicates an expected call of SendTransaction.
func (*MockNodeMockRecorder) SpamStatistics ¶ added in v0.68.0
func (mr *MockNodeMockRecorder) SpamStatistics(arg0, arg1 interface{}) *gomock.Call
SpamStatistics indicates an expected call of SpamStatistics.
func (*MockNodeMockRecorder) Statistics ¶ added in v0.62.0
func (mr *MockNodeMockRecorder) Statistics(arg0 interface{}) *gomock.Call
Statistics indicates an expected call of Statistics.
func (*MockNodeMockRecorder) Stop ¶ added in v0.56.0
func (mr *MockNodeMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockSelector ¶ added in v0.56.0
type MockSelector struct {
// contains filtered or unexported fields
}
MockSelector is a mock of Selector interface.
func NewMockSelector ¶ added in v0.56.0
func NewMockSelector(ctrl *gomock.Controller) *MockSelector
NewMockSelector creates a new mock instance.
func (*MockSelector) EXPECT ¶ added in v0.56.0
func (m *MockSelector) EXPECT() *MockSelectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSelector) Node ¶ added in v0.56.0
func (m *MockSelector) Node(arg0 context.Context, arg1 node.SelectionReporter) (node.Node, error)
Node mocks base method.
type MockSelectorMockRecorder ¶ added in v0.56.0
type MockSelectorMockRecorder struct {
// contains filtered or unexported fields
}
MockSelectorMockRecorder is the mock recorder for MockSelector.
func (*MockSelectorMockRecorder) Node ¶ added in v0.56.0
func (mr *MockSelectorMockRecorder) Node(arg0, arg1 interface{}) *gomock.Call
Node indicates an expected call of Node.
func (*MockSelectorMockRecorder) Stop ¶ added in v0.56.0
func (mr *MockSelectorMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.