Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockPublishSubscriber
- type MockPublishSubscriberMockRecorder
- type MockPublishSubscriberPublishCall
- func (c *MockPublishSubscriberPublishCall) Do(f func(context.Context, string, []byte) error) *MockPublishSubscriberPublishCall
- func (c *MockPublishSubscriberPublishCall) DoAndReturn(f func(context.Context, string, []byte) error) *MockPublishSubscriberPublishCall
- func (c *MockPublishSubscriberPublishCall) Return(arg0 error) *MockPublishSubscriberPublishCall
- type MockPublishSubscriberRegisterCall
- func (c *MockPublishSubscriberRegisterCall) Do(f func(string, pubsub.GossipHandler, ...pubsub.ValidatorOpt)) *MockPublishSubscriberRegisterCall
- func (c *MockPublishSubscriberRegisterCall) DoAndReturn(f func(string, pubsub.GossipHandler, ...pubsub.ValidatorOpt)) *MockPublishSubscriberRegisterCall
- func (c *MockPublishSubscriberRegisterCall) Return() *MockPublishSubscriberRegisterCall
- type MockPublisher
- type MockPublisherMockRecorder
- type MockPublisherPublishCall
- func (c *MockPublisherPublishCall) Do(f func(context.Context, string, []byte) error) *MockPublisherPublishCall
- func (c *MockPublisherPublishCall) DoAndReturn(f func(context.Context, string, []byte) error) *MockPublisherPublishCall
- func (c *MockPublisherPublishCall) Return(arg0 error) *MockPublisherPublishCall
- type MockSubscriber
- type MockSubscriberMockRecorder
- type MockSubscriberRegisterCall
- func (c *MockSubscriberRegisterCall) Do(f func(string, pubsub.GossipHandler, ...pubsub.ValidatorOpt)) *MockSubscriberRegisterCall
- func (c *MockSubscriberRegisterCall) DoAndReturn(f func(string, pubsub.GossipHandler, ...pubsub.ValidatorOpt)) *MockSubscriberRegisterCall
- func (c *MockSubscriberRegisterCall) Return() *MockSubscriberRegisterCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPublishSubscriber ¶ added in v1.7.0
type MockPublishSubscriber struct {
// contains filtered or unexported fields
}
MockPublishSubscriber is a mock of PublishSubscriber interface.
func NewMockPublishSubscriber ¶ added in v1.7.0
func NewMockPublishSubscriber(ctrl *gomock.Controller) *MockPublishSubscriber
NewMockPublishSubscriber creates a new mock instance.
func (*MockPublishSubscriber) EXPECT ¶ added in v1.7.0
func (m *MockPublishSubscriber) EXPECT() *MockPublishSubscriberMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPublishSubscriber) Register ¶ added in v1.7.0
func (m *MockPublishSubscriber) Register(arg0 string, arg1 pubsub.GossipHandler, arg2 ...pubsub.ValidatorOpt)
Register mocks base method.
type MockPublishSubscriberMockRecorder ¶ added in v1.7.0
type MockPublishSubscriberMockRecorder struct {
// contains filtered or unexported fields
}
MockPublishSubscriberMockRecorder is the mock recorder for MockPublishSubscriber.
func (*MockPublishSubscriberMockRecorder) Publish ¶ added in v1.7.0
func (mr *MockPublishSubscriberMockRecorder) Publish(arg0, arg1, arg2 any) *MockPublishSubscriberPublishCall
Publish indicates an expected call of Publish.
func (*MockPublishSubscriberMockRecorder) Register ¶ added in v1.7.0
func (mr *MockPublishSubscriberMockRecorder) Register(arg0, arg1 any, arg2 ...any) *MockPublishSubscriberRegisterCall
Register indicates an expected call of Register.
type MockPublishSubscriberPublishCall ¶ added in v1.7.0
MockPublishSubscriberPublishCall wrap *gomock.Call
func (*MockPublishSubscriberPublishCall) Do ¶ added in v1.7.0
func (c *MockPublishSubscriberPublishCall) Do(f func(context.Context, string, []byte) error) *MockPublishSubscriberPublishCall
Do rewrite *gomock.Call.Do
func (*MockPublishSubscriberPublishCall) DoAndReturn ¶ added in v1.7.0
func (c *MockPublishSubscriberPublishCall) DoAndReturn(f func(context.Context, string, []byte) error) *MockPublishSubscriberPublishCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPublishSubscriberPublishCall) Return ¶ added in v1.7.0
func (c *MockPublishSubscriberPublishCall) Return(arg0 error) *MockPublishSubscriberPublishCall
Return rewrite *gomock.Call.Return
type MockPublishSubscriberRegisterCall ¶ added in v1.7.0
MockPublishSubscriberRegisterCall wrap *gomock.Call
func (*MockPublishSubscriberRegisterCall) Do ¶ added in v1.7.0
func (c *MockPublishSubscriberRegisterCall) Do(f func(string, pubsub.GossipHandler, ...pubsub.ValidatorOpt)) *MockPublishSubscriberRegisterCall
Do rewrite *gomock.Call.Do
func (*MockPublishSubscriberRegisterCall) DoAndReturn ¶ added in v1.7.0
func (c *MockPublishSubscriberRegisterCall) DoAndReturn(f func(string, pubsub.GossipHandler, ...pubsub.ValidatorOpt)) *MockPublishSubscriberRegisterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPublishSubscriberRegisterCall) Return ¶ added in v1.7.0
func (c *MockPublishSubscriberRegisterCall) Return() *MockPublishSubscriberRegisterCall
Return rewrite *gomock.Call.Return
type MockPublisher ¶
type MockPublisher struct {
// contains filtered or unexported fields
}
MockPublisher is a mock of Publisher interface.
func NewMockPublisher ¶
func NewMockPublisher(ctrl *gomock.Controller) *MockPublisher
NewMockPublisher creates a new mock instance.
func (*MockPublisher) EXPECT ¶
func (m *MockPublisher) EXPECT() *MockPublisherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPublisherMockRecorder ¶
type MockPublisherMockRecorder struct {
// contains filtered or unexported fields
}
MockPublisherMockRecorder is the mock recorder for MockPublisher.
func (*MockPublisherMockRecorder) Publish ¶
func (mr *MockPublisherMockRecorder) Publish(arg0, arg1, arg2 any) *MockPublisherPublishCall
Publish indicates an expected call of Publish.
type MockPublisherPublishCall ¶ added in v1.4.0
MockPublisherPublishCall wrap *gomock.Call
func (*MockPublisherPublishCall) Do ¶ added in v1.4.0
func (c *MockPublisherPublishCall) Do(f func(context.Context, string, []byte) error) *MockPublisherPublishCall
Do rewrite *gomock.Call.Do
func (*MockPublisherPublishCall) DoAndReturn ¶ added in v1.4.0
func (c *MockPublisherPublishCall) DoAndReturn(f func(context.Context, string, []byte) error) *MockPublisherPublishCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPublisherPublishCall) Return ¶ added in v1.4.0
func (c *MockPublisherPublishCall) Return(arg0 error) *MockPublisherPublishCall
Return rewrite *gomock.Call.Return
type MockSubscriber ¶
type MockSubscriber struct {
// contains filtered or unexported fields
}
MockSubscriber is a mock of Subscriber interface.
func NewMockSubscriber ¶
func NewMockSubscriber(ctrl *gomock.Controller) *MockSubscriber
NewMockSubscriber creates a new mock instance.
func (*MockSubscriber) EXPECT ¶
func (m *MockSubscriber) EXPECT() *MockSubscriberMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSubscriber) Register ¶
func (m *MockSubscriber) Register(arg0 string, arg1 pubsub.GossipHandler, arg2 ...pubsub.ValidatorOpt)
Register mocks base method.
type MockSubscriberMockRecorder ¶
type MockSubscriberMockRecorder struct {
// contains filtered or unexported fields
}
MockSubscriberMockRecorder is the mock recorder for MockSubscriber.
func (*MockSubscriberMockRecorder) Register ¶
func (mr *MockSubscriberMockRecorder) Register(arg0, arg1 any, arg2 ...any) *MockSubscriberRegisterCall
Register indicates an expected call of Register.
type MockSubscriberRegisterCall ¶ added in v1.4.0
MockSubscriberRegisterCall wrap *gomock.Call
func (*MockSubscriberRegisterCall) Do ¶ added in v1.4.0
func (c *MockSubscriberRegisterCall) Do(f func(string, pubsub.GossipHandler, ...pubsub.ValidatorOpt)) *MockSubscriberRegisterCall
Do rewrite *gomock.Call.Do
func (*MockSubscriberRegisterCall) DoAndReturn ¶ added in v1.4.0
func (c *MockSubscriberRegisterCall) DoAndReturn(f func(string, pubsub.GossipHandler, ...pubsub.ValidatorOpt)) *MockSubscriberRegisterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSubscriberRegisterCall) Return ¶ added in v1.4.0
func (c *MockSubscriberRegisterCall) Return() *MockSubscriberRegisterCall
Return rewrite *gomock.Call.Return