Documentation ¶
Overview ¶
Package mockrepo is a generated GoMock package.
Package mockrepo is a generated GoMock package.
Package mockrepo is a generated GoMock package.
Package mockrepo is a generated GoMock package.
Index ¶
- type MockCIIBestPracticesClient
- type MockCIIBestPracticesClientMockRecorder
- type MockRepo
- type MockRepoClient
- func (m *MockRepoClient) Close() error
- func (m *MockRepoClient) EXPECT() *MockRepoClientMockRecorder
- func (m *MockRepoClient) GetBranch(branch string) (*clients.BranchRef, error)
- func (m *MockRepoClient) GetCreatedAt() (time.Time, error)
- func (m *MockRepoClient) GetDefaultBranch() (*clients.BranchRef, error)
- func (m *MockRepoClient) GetDefaultBranchName() (string, error)
- func (m *MockRepoClient) GetFileContent(filename string) ([]byte, error)
- func (m *MockRepoClient) GetOrgRepoClient(arg0 context.Context) (clients.RepoClient, error)
- func (m *MockRepoClient) InitRepo(repo clients.Repo, commitSHA string, commitDepth int) error
- func (m *MockRepoClient) IsArchived() (bool, error)
- func (m *MockRepoClient) ListCheckRunsForRef(ref string) ([]clients.CheckRun, error)
- func (m *MockRepoClient) ListCommits() ([]clients.Commit, error)
- func (m *MockRepoClient) ListContributors() ([]clients.User, error)
- func (m *MockRepoClient) ListFiles(predicate func(string) (bool, error)) ([]string, error)
- func (m *MockRepoClient) ListIssues() ([]clients.Issue, error)
- func (m *MockRepoClient) ListLicenses() ([]clients.License, error)
- func (m *MockRepoClient) ListProgrammingLanguages() ([]clients.Language, error)
- func (m *MockRepoClient) ListReleases() ([]clients.Release, error)
- func (m *MockRepoClient) ListStatuses(ref string) ([]clients.Status, error)
- func (m *MockRepoClient) ListSuccessfulWorkflowRuns(filename string) ([]clients.WorkflowRun, error)
- func (m *MockRepoClient) ListWebhooks() ([]clients.Webhook, error)
- func (m *MockRepoClient) LocalPath() (string, error)
- func (m *MockRepoClient) Search(request clients.SearchRequest) (clients.SearchResponse, error)
- func (m *MockRepoClient) SearchCommits(request clients.SearchCommitsOptions) ([]clients.Commit, error)
- func (m *MockRepoClient) URI() string
- type MockRepoClientMockRecorder
- func (mr *MockRepoClientMockRecorder) Close() *gomock.Call
- func (mr *MockRepoClientMockRecorder) GetBranch(branch interface{}) *gomock.Call
- func (mr *MockRepoClientMockRecorder) GetCreatedAt() *gomock.Call
- func (mr *MockRepoClientMockRecorder) GetDefaultBranch() *gomock.Call
- func (mr *MockRepoClientMockRecorder) GetDefaultBranchName() *gomock.Call
- func (mr *MockRepoClientMockRecorder) GetFileContent(filename interface{}) *gomock.Call
- func (mr *MockRepoClientMockRecorder) GetOrgRepoClient(arg0 interface{}) *gomock.Call
- func (mr *MockRepoClientMockRecorder) InitRepo(repo, commitSHA, commitDepth interface{}) *gomock.Call
- func (mr *MockRepoClientMockRecorder) IsArchived() *gomock.Call
- func (mr *MockRepoClientMockRecorder) ListCheckRunsForRef(ref interface{}) *gomock.Call
- func (mr *MockRepoClientMockRecorder) ListCommits() *gomock.Call
- func (mr *MockRepoClientMockRecorder) ListContributors() *gomock.Call
- func (mr *MockRepoClientMockRecorder) ListFiles(predicate interface{}) *gomock.Call
- func (mr *MockRepoClientMockRecorder) ListIssues() *gomock.Call
- func (mr *MockRepoClientMockRecorder) ListLicenses() *gomock.Call
- func (mr *MockRepoClientMockRecorder) ListProgrammingLanguages() *gomock.Call
- func (mr *MockRepoClientMockRecorder) ListReleases() *gomock.Call
- func (mr *MockRepoClientMockRecorder) ListStatuses(ref interface{}) *gomock.Call
- func (mr *MockRepoClientMockRecorder) ListSuccessfulWorkflowRuns(filename interface{}) *gomock.Call
- func (mr *MockRepoClientMockRecorder) ListWebhooks() *gomock.Call
- func (mr *MockRepoClientMockRecorder) LocalPath() *gomock.Call
- func (mr *MockRepoClientMockRecorder) Search(request interface{}) *gomock.Call
- func (mr *MockRepoClientMockRecorder) SearchCommits(request interface{}) *gomock.Call
- func (mr *MockRepoClientMockRecorder) URI() *gomock.Call
- type MockRepoMockRecorder
- func (mr *MockRepoMockRecorder) AppendMetadata(metadata ...interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) Host() *gomock.Call
- func (mr *MockRepoMockRecorder) IsValid() *gomock.Call
- func (mr *MockRepoMockRecorder) Metadata() *gomock.Call
- func (mr *MockRepoMockRecorder) String() *gomock.Call
- func (mr *MockRepoMockRecorder) URI() *gomock.Call
- type MockVulnerabilitiesClient
- type MockVulnerabilitiesClientMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCIIBestPracticesClient ¶
type MockCIIBestPracticesClient struct {
// contains filtered or unexported fields
}
MockCIIBestPracticesClient is a mock of CIIBestPracticesClient interface.
func NewMockCIIBestPracticesClient ¶
func NewMockCIIBestPracticesClient(ctrl *gomock.Controller) *MockCIIBestPracticesClient
NewMockCIIBestPracticesClient creates a new mock instance.
func (*MockCIIBestPracticesClient) EXPECT ¶
func (m *MockCIIBestPracticesClient) EXPECT() *MockCIIBestPracticesClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCIIBestPracticesClient) GetBadgeLevel ¶
func (m *MockCIIBestPracticesClient) GetBadgeLevel(ctx context.Context, uri string) (clients.BadgeLevel, error)
GetBadgeLevel mocks base method.
type MockCIIBestPracticesClientMockRecorder ¶
type MockCIIBestPracticesClientMockRecorder struct {
// contains filtered or unexported fields
}
MockCIIBestPracticesClientMockRecorder is the mock recorder for MockCIIBestPracticesClient.
func (*MockCIIBestPracticesClientMockRecorder) GetBadgeLevel ¶
func (mr *MockCIIBestPracticesClientMockRecorder) GetBadgeLevel(ctx, uri interface{}) *gomock.Call
GetBadgeLevel indicates an expected call of GetBadgeLevel.
type MockRepo ¶
type MockRepo struct {
// contains filtered or unexported fields
}
MockRepo is a mock of Repo interface.
func NewMockRepo ¶
func NewMockRepo(ctrl *gomock.Controller) *MockRepo
NewMockRepo creates a new mock instance.
func (*MockRepo) AppendMetadata ¶
AppendMetadata mocks base method.
func (*MockRepo) EXPECT ¶
func (m *MockRepo) EXPECT() *MockRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRepoClient ¶
type MockRepoClient struct {
// contains filtered or unexported fields
}
MockRepoClient is a mock of RepoClient interface.
func NewMockRepoClient ¶
func NewMockRepoClient(ctrl *gomock.Controller) *MockRepoClient
NewMockRepoClient creates a new mock instance.
func (*MockRepoClient) EXPECT ¶
func (m *MockRepoClient) EXPECT() *MockRepoClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepoClient) GetBranch ¶
func (m *MockRepoClient) GetBranch(branch string) (*clients.BranchRef, error)
GetBranch mocks base method.
func (*MockRepoClient) GetCreatedAt ¶
func (m *MockRepoClient) GetCreatedAt() (time.Time, error)
GetCreatedAt mocks base method.
func (*MockRepoClient) GetDefaultBranch ¶
func (m *MockRepoClient) GetDefaultBranch() (*clients.BranchRef, error)
GetDefaultBranch mocks base method.
func (*MockRepoClient) GetDefaultBranchName ¶
func (m *MockRepoClient) GetDefaultBranchName() (string, error)
GetDefaultBranchName mocks base method.
func (*MockRepoClient) GetFileContent ¶
func (m *MockRepoClient) GetFileContent(filename string) ([]byte, error)
GetFileContent mocks base method.
func (*MockRepoClient) GetOrgRepoClient ¶
func (m *MockRepoClient) GetOrgRepoClient(arg0 context.Context) (clients.RepoClient, error)
GetOrgRepoClient mocks base method.
func (*MockRepoClient) IsArchived ¶
func (m *MockRepoClient) IsArchived() (bool, error)
IsArchived mocks base method.
func (*MockRepoClient) ListCheckRunsForRef ¶
func (m *MockRepoClient) ListCheckRunsForRef(ref string) ([]clients.CheckRun, error)
ListCheckRunsForRef mocks base method.
func (*MockRepoClient) ListCommits ¶
func (m *MockRepoClient) ListCommits() ([]clients.Commit, error)
ListCommits mocks base method.
func (*MockRepoClient) ListContributors ¶
func (m *MockRepoClient) ListContributors() ([]clients.User, error)
ListContributors mocks base method.
func (*MockRepoClient) ListIssues ¶
func (m *MockRepoClient) ListIssues() ([]clients.Issue, error)
ListIssues mocks base method.
func (*MockRepoClient) ListLicenses ¶
func (m *MockRepoClient) ListLicenses() ([]clients.License, error)
ListLicenses mocks base method.
func (*MockRepoClient) ListProgrammingLanguages ¶
func (m *MockRepoClient) ListProgrammingLanguages() ([]clients.Language, error)
ListProgrammingLanguages mocks base method.
func (*MockRepoClient) ListReleases ¶
func (m *MockRepoClient) ListReleases() ([]clients.Release, error)
ListReleases mocks base method.
func (*MockRepoClient) ListStatuses ¶
func (m *MockRepoClient) ListStatuses(ref string) ([]clients.Status, error)
ListStatuses mocks base method.
func (*MockRepoClient) ListSuccessfulWorkflowRuns ¶
func (m *MockRepoClient) ListSuccessfulWorkflowRuns(filename string) ([]clients.WorkflowRun, error)
ListSuccessfulWorkflowRuns mocks base method.
func (*MockRepoClient) ListWebhooks ¶
func (m *MockRepoClient) ListWebhooks() ([]clients.Webhook, error)
ListWebhooks mocks base method.
func (*MockRepoClient) LocalPath ¶
func (m *MockRepoClient) LocalPath() (string, error)
LocalPath mocks base method.
func (*MockRepoClient) Search ¶
func (m *MockRepoClient) Search(request clients.SearchRequest) (clients.SearchResponse, error)
Search mocks base method.
func (*MockRepoClient) SearchCommits ¶
func (m *MockRepoClient) SearchCommits(request clients.SearchCommitsOptions) ([]clients.Commit, error)
SearchCommits mocks base method.
type MockRepoClientMockRecorder ¶
type MockRepoClientMockRecorder struct {
// contains filtered or unexported fields
}
MockRepoClientMockRecorder is the mock recorder for MockRepoClient.
func (*MockRepoClientMockRecorder) Close ¶
func (mr *MockRepoClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockRepoClientMockRecorder) GetBranch ¶
func (mr *MockRepoClientMockRecorder) GetBranch(branch interface{}) *gomock.Call
GetBranch indicates an expected call of GetBranch.
func (*MockRepoClientMockRecorder) GetCreatedAt ¶
func (mr *MockRepoClientMockRecorder) GetCreatedAt() *gomock.Call
GetCreatedAt indicates an expected call of GetCreatedAt.
func (*MockRepoClientMockRecorder) GetDefaultBranch ¶
func (mr *MockRepoClientMockRecorder) GetDefaultBranch() *gomock.Call
GetDefaultBranch indicates an expected call of GetDefaultBranch.
func (*MockRepoClientMockRecorder) GetDefaultBranchName ¶
func (mr *MockRepoClientMockRecorder) GetDefaultBranchName() *gomock.Call
GetDefaultBranchName indicates an expected call of GetDefaultBranchName.
func (*MockRepoClientMockRecorder) GetFileContent ¶
func (mr *MockRepoClientMockRecorder) GetFileContent(filename interface{}) *gomock.Call
GetFileContent indicates an expected call of GetFileContent.
func (*MockRepoClientMockRecorder) GetOrgRepoClient ¶
func (mr *MockRepoClientMockRecorder) GetOrgRepoClient(arg0 interface{}) *gomock.Call
GetOrgRepoClient indicates an expected call of GetOrgRepoClient.
func (*MockRepoClientMockRecorder) InitRepo ¶
func (mr *MockRepoClientMockRecorder) InitRepo(repo, commitSHA, commitDepth interface{}) *gomock.Call
InitRepo indicates an expected call of InitRepo.
func (*MockRepoClientMockRecorder) IsArchived ¶
func (mr *MockRepoClientMockRecorder) IsArchived() *gomock.Call
IsArchived indicates an expected call of IsArchived.
func (*MockRepoClientMockRecorder) ListCheckRunsForRef ¶
func (mr *MockRepoClientMockRecorder) ListCheckRunsForRef(ref interface{}) *gomock.Call
ListCheckRunsForRef indicates an expected call of ListCheckRunsForRef.
func (*MockRepoClientMockRecorder) ListCommits ¶
func (mr *MockRepoClientMockRecorder) ListCommits() *gomock.Call
ListCommits indicates an expected call of ListCommits.
func (*MockRepoClientMockRecorder) ListContributors ¶
func (mr *MockRepoClientMockRecorder) ListContributors() *gomock.Call
ListContributors indicates an expected call of ListContributors.
func (*MockRepoClientMockRecorder) ListFiles ¶
func (mr *MockRepoClientMockRecorder) ListFiles(predicate interface{}) *gomock.Call
ListFiles indicates an expected call of ListFiles.
func (*MockRepoClientMockRecorder) ListIssues ¶
func (mr *MockRepoClientMockRecorder) ListIssues() *gomock.Call
ListIssues indicates an expected call of ListIssues.
func (*MockRepoClientMockRecorder) ListLicenses ¶
func (mr *MockRepoClientMockRecorder) ListLicenses() *gomock.Call
ListLicenses indicates an expected call of ListLicenses.
func (*MockRepoClientMockRecorder) ListProgrammingLanguages ¶
func (mr *MockRepoClientMockRecorder) ListProgrammingLanguages() *gomock.Call
ListProgrammingLanguages indicates an expected call of ListProgrammingLanguages.
func (*MockRepoClientMockRecorder) ListReleases ¶
func (mr *MockRepoClientMockRecorder) ListReleases() *gomock.Call
ListReleases indicates an expected call of ListReleases.
func (*MockRepoClientMockRecorder) ListStatuses ¶
func (mr *MockRepoClientMockRecorder) ListStatuses(ref interface{}) *gomock.Call
ListStatuses indicates an expected call of ListStatuses.
func (*MockRepoClientMockRecorder) ListSuccessfulWorkflowRuns ¶
func (mr *MockRepoClientMockRecorder) ListSuccessfulWorkflowRuns(filename interface{}) *gomock.Call
ListSuccessfulWorkflowRuns indicates an expected call of ListSuccessfulWorkflowRuns.
func (*MockRepoClientMockRecorder) ListWebhooks ¶
func (mr *MockRepoClientMockRecorder) ListWebhooks() *gomock.Call
ListWebhooks indicates an expected call of ListWebhooks.
func (*MockRepoClientMockRecorder) LocalPath ¶
func (mr *MockRepoClientMockRecorder) LocalPath() *gomock.Call
LocalPath indicates an expected call of LocalPath.
func (*MockRepoClientMockRecorder) Search ¶
func (mr *MockRepoClientMockRecorder) Search(request interface{}) *gomock.Call
Search indicates an expected call of Search.
func (*MockRepoClientMockRecorder) SearchCommits ¶
func (mr *MockRepoClientMockRecorder) SearchCommits(request interface{}) *gomock.Call
SearchCommits indicates an expected call of SearchCommits.
func (*MockRepoClientMockRecorder) URI ¶
func (mr *MockRepoClientMockRecorder) URI() *gomock.Call
URI indicates an expected call of URI.
type MockRepoMockRecorder ¶
type MockRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockRepoMockRecorder is the mock recorder for MockRepo.
func (*MockRepoMockRecorder) AppendMetadata ¶
func (mr *MockRepoMockRecorder) AppendMetadata(metadata ...interface{}) *gomock.Call
AppendMetadata indicates an expected call of AppendMetadata.
func (*MockRepoMockRecorder) Host ¶
func (mr *MockRepoMockRecorder) Host() *gomock.Call
Host indicates an expected call of Host.
func (*MockRepoMockRecorder) IsValid ¶
func (mr *MockRepoMockRecorder) IsValid() *gomock.Call
IsValid indicates an expected call of IsValid.
func (*MockRepoMockRecorder) Metadata ¶
func (mr *MockRepoMockRecorder) Metadata() *gomock.Call
Metadata indicates an expected call of Metadata.
func (*MockRepoMockRecorder) String ¶
func (mr *MockRepoMockRecorder) String() *gomock.Call
String indicates an expected call of String.
func (*MockRepoMockRecorder) URI ¶
func (mr *MockRepoMockRecorder) URI() *gomock.Call
URI indicates an expected call of URI.
type MockVulnerabilitiesClient ¶
type MockVulnerabilitiesClient struct {
// contains filtered or unexported fields
}
MockVulnerabilitiesClient is a mock of VulnerabilitiesClient interface.
func NewMockVulnerabilitiesClient ¶
func NewMockVulnerabilitiesClient(ctrl *gomock.Controller) *MockVulnerabilitiesClient
NewMockVulnerabilitiesClient creates a new mock instance.
func (*MockVulnerabilitiesClient) EXPECT ¶
func (m *MockVulnerabilitiesClient) EXPECT() *MockVulnerabilitiesClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVulnerabilitiesClient) ListUnfixedVulnerabilities ¶
func (m *MockVulnerabilitiesClient) ListUnfixedVulnerabilities(context context.Context, commit, localDir string) (clients.VulnerabilitiesResponse, error)
ListUnfixedVulnerabilities mocks base method.
type MockVulnerabilitiesClientMockRecorder ¶
type MockVulnerabilitiesClientMockRecorder struct {
// contains filtered or unexported fields
}
MockVulnerabilitiesClientMockRecorder is the mock recorder for MockVulnerabilitiesClient.
func (*MockVulnerabilitiesClientMockRecorder) ListUnfixedVulnerabilities ¶
func (mr *MockVulnerabilitiesClientMockRecorder) ListUnfixedVulnerabilities(context, commit, localDir interface{}) *gomock.Call
ListUnfixedVulnerabilities indicates an expected call of ListUnfixedVulnerabilities.