mocks

package
v0.0.0-...-550d639 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter struct {
	mock.Mock
}

Formatter is an autogenerated mock type for the Formatter type

func NewFormatter

func NewFormatter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Formatter

NewFormatter creates a new instance of Formatter. 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 (*Formatter) GetCulpritSubjectAndBody

func (_m *Formatter) GetCulpritSubjectAndBody(ctx context.Context, culprit *v1.Culprit, subscription *protov1.Subscription) (string, string, error)

GetCulpritSubjectAndBody provides a mock function with given fields: ctx, culprit, subscription

func (*Formatter) GetReportSubjectAndBody

func (_m *Formatter) GetReportSubjectAndBody(ctx context.Context, anomalyGroup *anomalygroupprotov1.AnomalyGroup, subscription *protov1.Subscription, anomalyList []*v1.Anomaly) (string, string, error)

GetReportSubjectAndBody provides a mock function with given fields: ctx, anomalyGroup, subscription, anomalyList

Jump to

Keyboard shortcuts

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