mocks

package
v0.0.0-...-ace5988 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) AddIssueId

func (_m *Store) AddIssueId(ctx context.Context, id string, issueId string, groupId string) error

AddIssueId provides a mock function with given fields: ctx, id, issueId, groupId

func (*Store) Get

func (_m *Store) Get(ctx context.Context, ids []string) ([]*v1.Culprit, error)

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

func (*Store) Upsert

func (_m *Store) Upsert(ctx context.Context, anomaly_group_id string, commits []*v1.Commit) ([]string, error)

Upsert provides a mock function with given fields: ctx, anomaly_group_id, commits

Jump to

Keyboard shortcuts

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