mock_checks

package
v0.0.0-...-0cee358 Latest Latest
Warning

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

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

Documentation

Overview

Package mock_checks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAPI

type MockAPI struct {
	// contains filtered or unexported fields
}

MockAPI is a mock of API interface.

func NewMockAPI

func NewMockAPI(ctrl *gomock.Controller) *MockAPI

NewMockAPI creates a new mock instance.

func (*MockAPI) CancelRun

func (m *MockAPI) CancelRun(sender, owner, repo string, run *github.CheckRun, installation *github.Installation) error

CancelRun mocks base method.

func (*MockAPI) Context

func (m *MockAPI) Context() context.Context

Context mocks base method.

func (*MockAPI) CreateWPTCheckSuite

func (m *MockAPI) CreateWPTCheckSuite(appID, installationID int64, sha string, prNumbers ...int) (bool, error)

CreateWPTCheckSuite mocks base method.

func (*MockAPI) EXPECT

func (m *MockAPI) EXPECT() *MockAPIMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAPI) GetGitHubClient

func (m *MockAPI) GetGitHubClient() (*github.Client, error)

GetGitHubClient mocks base method.

func (*MockAPI) GetHTTPClient

func (m *MockAPI) GetHTTPClient() *http.Client

GetHTTPClient mocks base method.

func (*MockAPI) GetHTTPClientWithTimeout

func (m *MockAPI) GetHTTPClientWithTimeout(arg0 time.Duration) *http.Client

GetHTTPClientWithTimeout mocks base method.

func (*MockAPI) GetHostname

func (m *MockAPI) GetHostname() string

GetHostname mocks base method.

func (*MockAPI) GetResultsURL

func (m *MockAPI) GetResultsURL(filter shared.TestRunFilter) *url.URL

GetResultsURL mocks base method.

func (*MockAPI) GetResultsUploadURL

func (m *MockAPI) GetResultsUploadURL() *url.URL

GetResultsUploadURL mocks base method.

func (*MockAPI) GetRunsURL

func (m *MockAPI) GetRunsURL(filter shared.TestRunFilter) *url.URL

GetRunsURL mocks base method.

func (*MockAPI) GetServiceHostname

func (m *MockAPI) GetServiceHostname(service string) string

GetServiceHostname mocks base method.

func (*MockAPI) GetSuitesForSHA

func (m *MockAPI) GetSuitesForSHA(sha string) ([]shared.CheckSuite, error)

GetSuitesForSHA mocks base method.

func (*MockAPI) GetUploader

func (m *MockAPI) GetUploader(uploader string) (shared.Uploader, error)

GetUploader mocks base method.

func (*MockAPI) GetVersion

func (m *MockAPI) GetVersion() string

GetVersion mocks base method.

func (*MockAPI) GetVersionedHostname

func (m *MockAPI) GetVersionedHostname() string

GetVersionedHostname mocks base method.

func (*MockAPI) GetWPTRepoAppInstallationIDs

func (m *MockAPI) GetWPTRepoAppInstallationIDs() (int64, int64)

GetWPTRepoAppInstallationIDs mocks base method.

func (*MockAPI) IgnoreFailure

func (m *MockAPI) IgnoreFailure(sender, owner, repo string, run *github.CheckRun, installation *github.Installation) error

IgnoreFailure mocks base method.

func (*MockAPI) IsFeatureEnabled

func (m *MockAPI) IsFeatureEnabled(featureName string) bool

IsFeatureEnabled mocks base method.

func (*MockAPI) ScheduleResultsProcessing

func (m *MockAPI) ScheduleResultsProcessing(sha string, browser shared.ProductSpec) error

ScheduleResultsProcessing mocks base method.

func (*MockAPI) ScheduleTask

func (m *MockAPI) ScheduleTask(queueName, taskName, target string, params url.Values) (string, error)

ScheduleTask mocks base method.

type MockAPIMockRecorder

type MockAPIMockRecorder struct {
	// contains filtered or unexported fields
}

MockAPIMockRecorder is the mock recorder for MockAPI.

func (*MockAPIMockRecorder) CancelRun

func (mr *MockAPIMockRecorder) CancelRun(sender, owner, repo, run, installation any) *gomock.Call

CancelRun indicates an expected call of CancelRun.

func (*MockAPIMockRecorder) Context

func (mr *MockAPIMockRecorder) Context() *gomock.Call

Context indicates an expected call of Context.

func (*MockAPIMockRecorder) CreateWPTCheckSuite

func (mr *MockAPIMockRecorder) CreateWPTCheckSuite(appID, installationID, sha any, prNumbers ...any) *gomock.Call

CreateWPTCheckSuite indicates an expected call of CreateWPTCheckSuite.

func (*MockAPIMockRecorder) GetGitHubClient

func (mr *MockAPIMockRecorder) GetGitHubClient() *gomock.Call

GetGitHubClient indicates an expected call of GetGitHubClient.

func (*MockAPIMockRecorder) GetHTTPClient

func (mr *MockAPIMockRecorder) GetHTTPClient() *gomock.Call

GetHTTPClient indicates an expected call of GetHTTPClient.

func (*MockAPIMockRecorder) GetHTTPClientWithTimeout

func (mr *MockAPIMockRecorder) GetHTTPClientWithTimeout(arg0 any) *gomock.Call

GetHTTPClientWithTimeout indicates an expected call of GetHTTPClientWithTimeout.

func (*MockAPIMockRecorder) GetHostname

func (mr *MockAPIMockRecorder) GetHostname() *gomock.Call

GetHostname indicates an expected call of GetHostname.

func (*MockAPIMockRecorder) GetResultsURL

func (mr *MockAPIMockRecorder) GetResultsURL(filter any) *gomock.Call

GetResultsURL indicates an expected call of GetResultsURL.

func (*MockAPIMockRecorder) GetResultsUploadURL

func (mr *MockAPIMockRecorder) GetResultsUploadURL() *gomock.Call

GetResultsUploadURL indicates an expected call of GetResultsUploadURL.

func (*MockAPIMockRecorder) GetRunsURL

func (mr *MockAPIMockRecorder) GetRunsURL(filter any) *gomock.Call

GetRunsURL indicates an expected call of GetRunsURL.

func (*MockAPIMockRecorder) GetServiceHostname

func (mr *MockAPIMockRecorder) GetServiceHostname(service any) *gomock.Call

GetServiceHostname indicates an expected call of GetServiceHostname.

func (*MockAPIMockRecorder) GetSuitesForSHA

func (mr *MockAPIMockRecorder) GetSuitesForSHA(sha any) *gomock.Call

GetSuitesForSHA indicates an expected call of GetSuitesForSHA.

func (*MockAPIMockRecorder) GetUploader

func (mr *MockAPIMockRecorder) GetUploader(uploader any) *gomock.Call

GetUploader indicates an expected call of GetUploader.

func (*MockAPIMockRecorder) GetVersion

func (mr *MockAPIMockRecorder) GetVersion() *gomock.Call

GetVersion indicates an expected call of GetVersion.

func (*MockAPIMockRecorder) GetVersionedHostname

func (mr *MockAPIMockRecorder) GetVersionedHostname() *gomock.Call

GetVersionedHostname indicates an expected call of GetVersionedHostname.

func (*MockAPIMockRecorder) GetWPTRepoAppInstallationIDs

func (mr *MockAPIMockRecorder) GetWPTRepoAppInstallationIDs() *gomock.Call

GetWPTRepoAppInstallationIDs indicates an expected call of GetWPTRepoAppInstallationIDs.

func (*MockAPIMockRecorder) IgnoreFailure

func (mr *MockAPIMockRecorder) IgnoreFailure(sender, owner, repo, run, installation any) *gomock.Call

IgnoreFailure indicates an expected call of IgnoreFailure.

func (*MockAPIMockRecorder) IsFeatureEnabled

func (mr *MockAPIMockRecorder) IsFeatureEnabled(featureName any) *gomock.Call

IsFeatureEnabled indicates an expected call of IsFeatureEnabled.

func (*MockAPIMockRecorder) ScheduleResultsProcessing

func (mr *MockAPIMockRecorder) ScheduleResultsProcessing(sha, browser any) *gomock.Call

ScheduleResultsProcessing indicates an expected call of ScheduleResultsProcessing.

func (*MockAPIMockRecorder) ScheduleTask

func (mr *MockAPIMockRecorder) ScheduleTask(queueName, taskName, target, params any) *gomock.Call

ScheduleTask indicates an expected call of ScheduleTask.

Jump to

Keyboard shortcuts

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