Documentation ¶
Index ¶
- type Store
- func (_m *Store) DeleteByCommit(ctx context.Context, commitNumber types.CommitNumber, tx pgx.Tx) error
- func (_m *Store) GetByIDs(ctx context.Context, ids []string) ([]*regression.Regression, error)
- func (_m *Store) GetNotificationId(ctx context.Context, commitNumber types.CommitNumber, alertID string) (string, error)
- func (_m *Store) GetOldestCommit(ctx context.Context) (*types.CommitNumber, error)
- func (_m *Store) GetRegressionsBySubName(ctx context.Context, sub_name string, limit int, offset int) ([]*regression.Regression, error)
- func (_m *Store) Range(ctx context.Context, begin types.CommitNumber, end types.CommitNumber) (map[types.CommitNumber]*regression.AllRegressionsForCommit, error)
- func (_m *Store) SetHigh(ctx context.Context, commitNumber types.CommitNumber, alertID string, ...) (bool, string, error)
- func (_m *Store) SetLow(ctx context.Context, commitNumber types.CommitNumber, alertID string, ...) (bool, string, error)
- func (_m *Store) TriageHigh(ctx context.Context, commitNumber types.CommitNumber, alertID string, ...) error
- func (_m *Store) TriageLow(ctx context.Context, commitNumber types.CommitNumber, alertID string, ...) error
- func (_m *Store) Write(ctx context.Context, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
Store is an autogenerated mock type for the Store type
func NewStore ¶
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 ¶
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 ¶
func (_m *Store) Range(ctx context.Context, begin types.CommitNumber, end types.CommitNumber) (map[types.CommitNumber]*regression.AllRegressionsForCommit, error)
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 ¶
func (_m *Store) Write(ctx context.Context, regressions map[types.CommitNumber]*regression.AllRegressionsForCommit) error
Write provides a mock function with given fields: ctx, regressions