notify

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockNotifier

type MockNotifier struct {
	mock.Mock
}

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

func (*MockNotifier) Notify

func (_mock *MockNotifier) Notify(ctx context.Context, msg string) error

Notify provides a mock function for the type MockNotifier

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

type MockNotifier_Notify_Call struct {
	*mock.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 (*MockNotifier_Notify_Call) Run

func (*MockNotifier_Notify_Call) RunAndReturn

func (_c *MockNotifier_Notify_Call) RunAndReturn(run func(ctx context.Context, msg string) error) *MockNotifier_Notify_Call

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL