mocks

package
v0.0.0-...-34cbb95 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 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 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) DeleteByCommit

func (_m *Store) DeleteByCommit(ctx context.Context, commitNumber types.CommitNumber, tx pgx.Tx) error

DeleteByCommit provides a mock function with given fields: ctx, commitNumber, tx

func (*Store) GetByIDs

func (_m *Store) GetByIDs(ctx context.Context, ids []string) ([]*regression.Regression, error)

GetByIDs provides a mock function with given fields: ctx, ids

func (*Store) GetNotificationId

func (_m *Store) GetNotificationId(ctx context.Context, commitNumber types.CommitNumber, alertID string) (string, error)

GetNotificationId provides a mock function with given fields: ctx, commitNumber, alertID

func (*Store) GetOldestCommit

func (_m *Store) GetOldestCommit(ctx context.Context) (*types.CommitNumber, error)

GetOldestCommit provides a mock function with given fields: ctx

func (*Store) GetRegressionsBySubName

func (_m *Store) GetRegressionsBySubName(ctx context.Context, sub_name string, limit int, offset int) ([]*regression.Regression, error)

GetRegressionsBySubName provides a mock function with given fields: ctx, sub_name, limit, offset

func (*Store) Range

Range provides a mock function with given fields: ctx, begin, end

func (*Store) SetHigh

func (_m *Store) SetHigh(ctx context.Context, commitNumber types.CommitNumber, alertID string, df *frame.FrameResponse, high *clustering2.ClusterSummary) (bool, string, error)

SetHigh provides a mock function with given fields: ctx, commitNumber, alertID, df, high

func (*Store) SetLow

func (_m *Store) SetLow(ctx context.Context, commitNumber types.CommitNumber, alertID string, df *frame.FrameResponse, low *clustering2.ClusterSummary) (bool, string, error)

SetLow provides a mock function with given fields: ctx, commitNumber, alertID, df, low

func (*Store) TriageHigh

func (_m *Store) TriageHigh(ctx context.Context, commitNumber types.CommitNumber, alertID string, tr regression.TriageStatus) error

TriageHigh provides a mock function with given fields: ctx, commitNumber, alertID, tr

func (*Store) TriageLow

func (_m *Store) TriageLow(ctx context.Context, commitNumber types.CommitNumber, alertID string, tr regression.TriageStatus) error

TriageLow provides a mock function with given fields: ctx, commitNumber, alertID, tr

func (*Store) Write

Write provides a mock function with given fields: ctx, regressions

Jump to

Keyboard shortcuts

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