Documentation
¶
Index ¶
- type MockNotifier
- type MockNotifier_Expecter
- type MockNotifier_Notify_Call
- func (_c *MockNotifier_Notify_Call) Return(err error) *MockNotifier_Notify_Call
- func (_c *MockNotifier_Notify_Call) Run(run func(ctx context.Context, msg string)) *MockNotifier_Notify_Call
- func (_c *MockNotifier_Notify_Call) RunAndReturn(run func(ctx context.Context, msg string) error) *MockNotifier_Notify_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNotifier ¶
MockNotifier is an autogenerated mock type for the Notifier type
func NewMockNotifier ¶
func NewMockNotifier(t interface {
mock.TestingT
Cleanup(func())
}) *MockNotifier
NewMockNotifier creates a new instance of MockNotifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockNotifier) EXPECT ¶
func (_m *MockNotifier) EXPECT() *MockNotifier_Expecter
type MockNotifier_Expecter ¶
type MockNotifier_Expecter struct {
// contains filtered or unexported fields
}
func (*MockNotifier_Expecter) Notify ¶
func (_e *MockNotifier_Expecter) Notify(ctx interface{}, msg interface{}) *MockNotifier_Notify_Call
Notify is a helper method to define mock.On call
- ctx context.Context
- msg string
type MockNotifier_Notify_Call ¶
MockNotifier_Notify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Notify'
func (*MockNotifier_Notify_Call) Return ¶
func (_c *MockNotifier_Notify_Call) Return(err error) *MockNotifier_Notify_Call
func (*MockNotifier_Notify_Call) Run ¶
func (_c *MockNotifier_Notify_Call) Run(run func(ctx context.Context, msg string)) *MockNotifier_Notify_Call
func (*MockNotifier_Notify_Call) RunAndReturn ¶
func (_c *MockNotifier_Notify_Call) RunAndReturn(run func(ctx context.Context, msg string) error) *MockNotifier_Notify_Call
Click to show internal directories.
Click to hide internal directories.