mocks

package
v0.0.0-...-df0da6f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	mock.Mock
}

API is an autogenerated mock type for the API type

func NewAPI

func NewAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *API

NewAPI creates a new instance of API. 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 (*API) ChangelistLastUpdated

func (_m *API) ChangelistLastUpdated(ctx context.Context, qCLID string) (time.Time, error)

ChangelistLastUpdated provides a mock function with given fields: ctx, qCLID

func (*API) ComputeGUIStatus

func (_m *API) ComputeGUIStatus(ctx context.Context) (frontend.GUIStatus, error)

ComputeGUIStatus provides a mock function with given fields: ctx

func (*API) CountDigestsByTest

func (_m *API) CountDigestsByTest(ctx context.Context, q frontend.ListTestsQuery) (frontend.ListTestsResponse, error)

CountDigestsByTest provides a mock function with given fields: ctx, q

func (*API) GetBlamesForUntriagedDigests

func (_m *API) GetBlamesForUntriagedDigests(ctx context.Context, corpus string) (search.BlameSummaryV1, error)

GetBlamesForUntriagedDigests provides a mock function with given fields: ctx, corpus

func (*API) GetChangelistParamset

func (_m *API) GetChangelistParamset(ctx context.Context, crs string, clID string) (paramtools.ReadOnlyParamSet, error)

GetChangelistParamset provides a mock function with given fields: ctx, crs, clID

func (*API) GetCluster

func (_m *API) GetCluster(ctx context.Context, opts search.ClusterOptions) (frontend.ClusterDiffResult, error)

GetCluster provides a mock function with given fields: ctx, opts

func (*API) GetCommitsInWindow

func (_m *API) GetCommitsInWindow(ctx context.Context) ([]frontend.Commit, error)

GetCommitsInWindow provides a mock function with given fields: ctx

func (*API) GetDigestDetails

func (_m *API) GetDigestDetails(ctx context.Context, grouping paramtools.Params, digest types.Digest, clID string, crs string) (frontend.DigestDetails, error)

GetDigestDetails provides a mock function with given fields: ctx, grouping, digest, clID, crs

func (*API) GetDigestsDiff

func (_m *API) GetDigestsDiff(ctx context.Context, grouping paramtools.Params, left types.Digest, right types.Digest, clID string, crs string) (frontend.DigestComparison, error)

GetDigestsDiff provides a mock function with given fields: ctx, grouping, left, right, clID, crs

func (*API) GetDigestsForGrouping

func (_m *API) GetDigestsForGrouping(ctx context.Context, grouping paramtools.Params) (frontend.DigestListResponse, error)

GetDigestsForGrouping provides a mock function with given fields: ctx, grouping

func (*API) GetPrimaryBranchParamset

func (_m *API) GetPrimaryBranchParamset(ctx context.Context) (paramtools.ReadOnlyParamSet, error)

GetPrimaryBranchParamset provides a mock function with given fields: ctx

func (*API) NewAndUntriagedSummaryForCL

func (_m *API) NewAndUntriagedSummaryForCL(ctx context.Context, qCLID string) (search.NewAndUntriagedSummary, error)

NewAndUntriagedSummaryForCL provides a mock function with given fields: ctx, qCLID

func (*API) Search

func (_m *API) Search(_a0 context.Context, _a1 *query.Search) (*frontend.SearchResponse, error)

Search provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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