mocks

package
v0.0.0-...-963fb65 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationDataProvider

type NotificationDataProvider struct {
	mock.Mock
}

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

type Notifier struct {
	mock.Mock
}

Notifier is an autogenerated mock type for the Notifier type

func NewNotifier

func NewNotifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *Notifier

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

func (_m *Notifier) ExampleSend(ctx context.Context, alert *alerts.Alert) error

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

type Transport struct {
	mock.Mock
}

Transport is an autogenerated mock type for the Transport type

func NewTransport

func NewTransport(t interface {
	mock.TestingT
	Cleanup(func())
}) *Transport

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

func (*Transport) UpdateRegressionNotification

func (_m *Transport) UpdateRegressionNotification(ctx context.Context, alert *alerts.Alert, body string, notificationId string) error

UpdateRegressionNotification provides a mock function with given fields: ctx, alert, body, notificationId

Jump to

Keyboard shortcuts

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