mocks

package
v0.0.0-...-238917c Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Store

NewStore creates a new instance of Store. 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 (*Store) AddAnomalyID

func (_m *Store) AddAnomalyID(ctx context.Context, group_id string, anomaly_id string) error

AddAnomalyID provides a mock function with given fields: ctx, group_id, anomaly_id

func (*Store) AddCulpritIDs

func (_m *Store) AddCulpritIDs(ctx context.Context, group_id string, culprit_ids []string) error

AddCulpritIDs provides a mock function with given fields: ctx, group_id, culprit_ids

func (*Store) Create

func (_m *Store) Create(ctx context.Context, subscription_name string, subscription_revision string, domain_name string, benchmark_name string, start_commit int64, end_commit int64, action string) (string, error)

Create provides a mock function with given fields: ctx, subscription_name, subscription_revision, domain_name, benchmark_name, start_commit, end_commit, action

func (*Store) FindExistingGroup

func (_m *Store) FindExistingGroup(ctx context.Context, subscription_name string, subscription_revision string, domain_name string, benchmark_name string, start_commit int64, end_commit int64, action string) ([]*v1.AnomalyGroup, error)

FindExistingGroup provides a mock function with given fields: ctx, subscription_name, subscription_revision, domain_name, benchmark_name, start_commit, end_commit, action

func (*Store) LoadById

func (_m *Store) LoadById(ctx context.Context, group_id string) (*v1.AnomalyGroup, error)

LoadById provides a mock function with given fields: ctx, group_id

func (*Store) UpdateBisectID

func (_m *Store) UpdateBisectID(ctx context.Context, group_id string, bisection_id string) error

UpdateBisectID provides a mock function with given fields: ctx, group_id, bisection_id

func (*Store) UpdateReportedIssueID

func (_m *Store) UpdateReportedIssueID(ctx context.Context, group_id string, reported_issue_id string) error

UpdateReportedIssueID provides a mock function with given fields: ctx, group_id, reported_issue_id

Jump to

Keyboard shortcuts

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