Documentation ¶
Index ¶
- type NotificationDataProvider
- func (_m *NotificationDataProvider) GetNotificationDataRegressionFound(_a0 context.Context, _a1 common.RegressionMetadata) (*common.NotificationData, error)
- func (_m *NotificationDataProvider) GetNotificationDataRegressionMissing(_a0 context.Context, _a1 common.RegressionMetadata) (*common.NotificationData, error)
- type Notifier
- func (_m *Notifier) ExampleSend(ctx context.Context, alert *alerts.Alert) error
- func (_m *Notifier) RegressionFound(ctx context.Context, commit provider.Commit, previousCommit provider.Commit, ...) (string, error)
- func (_m *Notifier) RegressionMissing(ctx context.Context, commit provider.Commit, previousCommit provider.Commit, ...) error
- func (_m *Notifier) UpdateNotification(ctx context.Context, commit provider.Commit, previousCommit provider.Commit, ...) error
- type Transport
- func (_m *Transport) SendNewRegression(ctx context.Context, alert *alerts.Alert, body string, subject string) (string, error)
- func (_m *Transport) SendRegressionMissing(ctx context.Context, threadingReference string, alert *alerts.Alert, ...) error
- func (_m *Transport) UpdateRegressionNotification(ctx context.Context, alert *alerts.Alert, body string, notificationId string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationDataProvider ¶
NotificationDataProvider is an autogenerated mock type for the NotificationDataProvider type
func NewNotificationDataProvider ¶
func NewNotificationDataProvider(t interface { mock.TestingT Cleanup(func()) }) *NotificationDataProvider
NewNotificationDataProvider creates a new instance of NotificationDataProvider. 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 (*NotificationDataProvider) GetNotificationDataRegressionFound ¶
func (_m *NotificationDataProvider) GetNotificationDataRegressionFound(_a0 context.Context, _a1 common.RegressionMetadata) (*common.NotificationData, error)
GetNotificationDataRegressionFound provides a mock function with given fields: _a0, _a1
func (*NotificationDataProvider) GetNotificationDataRegressionMissing ¶
func (_m *NotificationDataProvider) GetNotificationDataRegressionMissing(_a0 context.Context, _a1 common.RegressionMetadata) (*common.NotificationData, error)
GetNotificationDataRegressionMissing provides a mock function with given fields: _a0, _a1
type Notifier ¶
Notifier is an autogenerated mock type for the Notifier type
func NewNotifier ¶
NewNotifier creates a new instance of Notifier. 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 (*Notifier) ExampleSend ¶
ExampleSend provides a mock function with given fields: ctx, alert
func (*Notifier) RegressionFound ¶
func (_m *Notifier) RegressionFound(ctx context.Context, commit provider.Commit, previousCommit provider.Commit, alert *alerts.Alert, cl *clustering2.ClusterSummary, _a5 *frame.FrameResponse, regressionID string) (string, error)
RegressionFound provides a mock function with given fields: ctx, commit, previousCommit, alert, cl, _a5, regressionID
func (*Notifier) RegressionMissing ¶
func (_m *Notifier) RegressionMissing(ctx context.Context, commit provider.Commit, previousCommit provider.Commit, alert *alerts.Alert, cl *clustering2.ClusterSummary, _a5 *frame.FrameResponse, threadingReference string) error
RegressionMissing provides a mock function with given fields: ctx, commit, previousCommit, alert, cl, _a5, threadingReference
func (*Notifier) UpdateNotification ¶
func (_m *Notifier) UpdateNotification(ctx context.Context, commit provider.Commit, previousCommit provider.Commit, alert *alerts.Alert, cl *clustering2.ClusterSummary, _a5 *frame.FrameResponse, notificationId string) error
UpdateNotification provides a mock function with given fields: ctx, commit, previousCommit, alert, cl, _a5, notificationId
type Transport ¶
Transport is an autogenerated mock type for the Transport type
func NewTransport ¶
NewTransport creates a new instance of Transport. 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 (*Transport) SendNewRegression ¶
func (_m *Transport) SendNewRegression(ctx context.Context, alert *alerts.Alert, body string, subject string) (string, error)
SendNewRegression provides a mock function with given fields: ctx, alert, body, subject
func (*Transport) SendRegressionMissing ¶
func (_m *Transport) SendRegressionMissing(ctx context.Context, threadingReference string, alert *alerts.Alert, body string, subject string) error
SendRegressionMissing provides a mock function with given fields: ctx, threadingReference, alert, body, subject