mocks

package
v0.0.0-...-b0b99f2 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnomalyApiClient

type AnomalyApiClient struct {
	mock.Mock
}

AnomalyApiClient is an autogenerated mock type for the AnomalyApiClient type

func NewAnomalyApiClient

func NewAnomalyApiClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *AnomalyApiClient

NewAnomalyApiClient creates a new instance of AnomalyApiClient. 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 (*AnomalyApiClient) GetAnomalies

func (_m *AnomalyApiClient) GetAnomalies(ctx context.Context, traceNames []string, startCommitPosition int, endCommitPosition int) (chromeperf.AnomalyMap, error)

GetAnomalies provides a mock function with given fields: ctx, traceNames, startCommitPosition, endCommitPosition

func (*AnomalyApiClient) GetAnomaliesAroundRevision

func (_m *AnomalyApiClient) GetAnomaliesAroundRevision(ctx context.Context, revision int) ([]chromeperf.AnomalyForRevision, error)

GetAnomaliesAroundRevision provides a mock function with given fields: ctx, revision

func (*AnomalyApiClient) GetAnomaliesTimeBased

func (_m *AnomalyApiClient) GetAnomaliesTimeBased(ctx context.Context, traceNames []string, startTime time.Time, endTime time.Time) (chromeperf.AnomalyMap, error)

GetAnomaliesTimeBased provides a mock function with given fields: ctx, traceNames, startTime, endTime

func (*AnomalyApiClient) GetAnomalyFromUrlSafeKey

func (_m *AnomalyApiClient) GetAnomalyFromUrlSafeKey(ctx context.Context, key string) (map[string][]string, chromeperf.Anomaly, error)

GetAnomalyFromUrlSafeKey provides a mock function with given fields: ctx, key

func (*AnomalyApiClient) ReportRegression

func (_m *AnomalyApiClient) ReportRegression(ctx context.Context, testPath string, startCommitPosition int32, endCommitPosition int32, projectId string, isImprovement bool, botName string, internal bool, medianBefore float32, medianAfter float32) (*chromeperf.ReportRegressionResponse, error)

ReportRegression provides a mock function with given fields: ctx, testPath, startCommitPosition, endCommitPosition, projectId, isImprovement, botName, internal, medianBefore, medianAfter

type ChromePerfClient

type ChromePerfClient struct {
	mock.Mock
}

ChromePerfClient is an autogenerated mock type for the ChromePerfClient type

func NewChromePerfClient

func NewChromePerfClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChromePerfClient

NewChromePerfClient creates a new instance of ChromePerfClient. 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 (*ChromePerfClient) SendGetRequest

func (_m *ChromePerfClient) SendGetRequest(ctx context.Context, apiName string, functionName string, queryParams url.Values, response interface{}) error

SendGetRequest provides a mock function with given fields: ctx, apiName, functionName, queryParams, response

func (*ChromePerfClient) SendPostRequest

func (_m *ChromePerfClient) SendPostRequest(ctx context.Context, apiName string, functionName string, requestObj interface{}, responseObj interface{}, acceptedStatusCodes []int) error

SendPostRequest provides a mock function with given fields: ctx, apiName, functionName, requestObj, responseObj, acceptedStatusCodes

Jump to

Keyboard shortcuts

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