Documentation ¶
Overview ¶
Package mock_checks is a generated GoMock package.
Index ¶
- type MockAPI
- func (m *MockAPI) CancelRun(sender, owner, repo string, run *github.CheckRun, ...) error
- func (m *MockAPI) Context() context.Context
- func (m *MockAPI) CreateWPTCheckSuite(appID, installationID int64, sha string, prNumbers ...int) (bool, error)
- func (m *MockAPI) EXPECT() *MockAPIMockRecorder
- func (m *MockAPI) GetGitHubClient() (*github.Client, error)
- func (m *MockAPI) GetHTTPClient() *http.Client
- func (m *MockAPI) GetHTTPClientWithTimeout(arg0 time.Duration) *http.Client
- func (m *MockAPI) GetHostname() string
- func (m *MockAPI) GetResultsURL(filter shared.TestRunFilter) *url.URL
- func (m *MockAPI) GetResultsUploadURL() *url.URL
- func (m *MockAPI) GetRunsURL(filter shared.TestRunFilter) *url.URL
- func (m *MockAPI) GetServiceHostname(service string) string
- func (m *MockAPI) GetSuitesForSHA(sha string) ([]shared.CheckSuite, error)
- func (m *MockAPI) GetUploader(uploader string) (shared.Uploader, error)
- func (m *MockAPI) GetVersion() string
- func (m *MockAPI) GetVersionedHostname() string
- func (m *MockAPI) GetWPTRepoAppInstallationIDs() (int64, int64)
- func (m *MockAPI) IgnoreFailure(sender, owner, repo string, run *github.CheckRun, ...) error
- func (m *MockAPI) IsFeatureEnabled(featureName string) bool
- func (m *MockAPI) ScheduleResultsProcessing(sha string, browser shared.ProductSpec) error
- func (m *MockAPI) ScheduleTask(queueName, taskName, target string, params url.Values) (string, error)
- type MockAPIMockRecorder
- func (mr *MockAPIMockRecorder) CancelRun(sender, owner, repo, run, installation any) *gomock.Call
- func (mr *MockAPIMockRecorder) Context() *gomock.Call
- func (mr *MockAPIMockRecorder) CreateWPTCheckSuite(appID, installationID, sha any, prNumbers ...any) *gomock.Call
- func (mr *MockAPIMockRecorder) GetGitHubClient() *gomock.Call
- func (mr *MockAPIMockRecorder) GetHTTPClient() *gomock.Call
- func (mr *MockAPIMockRecorder) GetHTTPClientWithTimeout(arg0 any) *gomock.Call
- func (mr *MockAPIMockRecorder) GetHostname() *gomock.Call
- func (mr *MockAPIMockRecorder) GetResultsURL(filter any) *gomock.Call
- func (mr *MockAPIMockRecorder) GetResultsUploadURL() *gomock.Call
- func (mr *MockAPIMockRecorder) GetRunsURL(filter any) *gomock.Call
- func (mr *MockAPIMockRecorder) GetServiceHostname(service any) *gomock.Call
- func (mr *MockAPIMockRecorder) GetSuitesForSHA(sha any) *gomock.Call
- func (mr *MockAPIMockRecorder) GetUploader(uploader any) *gomock.Call
- func (mr *MockAPIMockRecorder) GetVersion() *gomock.Call
- func (mr *MockAPIMockRecorder) GetVersionedHostname() *gomock.Call
- func (mr *MockAPIMockRecorder) GetWPTRepoAppInstallationIDs() *gomock.Call
- func (mr *MockAPIMockRecorder) IgnoreFailure(sender, owner, repo, run, installation any) *gomock.Call
- func (mr *MockAPIMockRecorder) IsFeatureEnabled(featureName any) *gomock.Call
- func (mr *MockAPIMockRecorder) ScheduleResultsProcessing(sha, browser any) *gomock.Call
- func (mr *MockAPIMockRecorder) ScheduleTask(queueName, taskName, target, params any) *gomock.Call
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) 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 ¶
GetGitHubClient mocks base method.
func (*MockAPI) GetHTTPClient ¶
GetHTTPClient mocks base method.
func (*MockAPI) GetHTTPClientWithTimeout ¶
GetHTTPClientWithTimeout mocks base method.
func (*MockAPI) GetResultsURL ¶
func (m *MockAPI) GetResultsURL(filter shared.TestRunFilter) *url.URL
GetResultsURL mocks base method.
func (*MockAPI) GetResultsUploadURL ¶
GetResultsUploadURL mocks base method.
func (*MockAPI) GetRunsURL ¶
func (m *MockAPI) GetRunsURL(filter shared.TestRunFilter) *url.URL
GetRunsURL mocks base method.
func (*MockAPI) GetServiceHostname ¶
GetServiceHostname mocks base method.
func (*MockAPI) GetSuitesForSHA ¶
func (m *MockAPI) GetSuitesForSHA(sha string) ([]shared.CheckSuite, error)
GetSuitesForSHA mocks base method.
func (*MockAPI) GetUploader ¶
GetUploader mocks base method.
func (*MockAPI) GetVersionedHostname ¶
GetVersionedHostname mocks base method.
func (*MockAPI) GetWPTRepoAppInstallationIDs ¶
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 ¶
IsFeatureEnabled mocks base method.
func (*MockAPI) ScheduleResultsProcessing ¶
func (m *MockAPI) ScheduleResultsProcessing(sha string, browser shared.ProductSpec) error
ScheduleResultsProcessing 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.