mocks

package
v0.0.0-...-fcfcbe3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BugsDB

type BugsDB struct {
	mock.Mock
}

BugsDB is an autogenerated mock type for the BugsDB type

func NewBugsDB

func NewBugsDB(t interface {
	mock.TestingT
	Cleanup(func())
}) *BugsDB

NewBugsDB creates a new instance of BugsDB. 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 (*BugsDB) GenerateRunId

func (_m *BugsDB) GenerateRunId(ts time.Time) string

GenerateRunId provides a mock function with given fields: ts

func (*BugsDB) GetAllRecognizedRunIds

func (_m *BugsDB) GetAllRecognizedRunIds(ctx context.Context) (map[string]bool, error)

GetAllRecognizedRunIds provides a mock function with given fields: ctx

func (*BugsDB) GetClientsFromDB

func (_m *BugsDB) GetClientsFromDB(ctx context.Context) (map[types.RecognizedClient]map[types.IssueSource]map[string]bool, error)

GetClientsFromDB provides a mock function with given fields: ctx

func (*BugsDB) GetCountsFromDB

func (_m *BugsDB) GetCountsFromDB(ctx context.Context, client types.RecognizedClient, source types.IssueSource, query string) (*types.IssueCountsData, error)

GetCountsFromDB provides a mock function with given fields: ctx, client, source, query

func (*BugsDB) GetQueryDataFromDB

func (_m *BugsDB) GetQueryDataFromDB(ctx context.Context, client types.RecognizedClient, source types.IssueSource, query string) ([]*types.QueryData, error)

GetQueryDataFromDB provides a mock function with given fields: ctx, client, source, query

func (*BugsDB) PutInDB

func (_m *BugsDB) PutInDB(ctx context.Context, client types.RecognizedClient, source types.IssueSource, query string, runId string, countsData *types.IssueCountsData) error

PutInDB provides a mock function with given fields: ctx, client, source, query, runId, countsData

func (*BugsDB) StoreRunId

func (_m *BugsDB) StoreRunId(ctx context.Context, runId string) error

StoreRunId provides a mock function with given fields: ctx, runId

Jump to

Keyboard shortcuts

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