mockrepo

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

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

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

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

func (*MockCIIBestPracticesClient) GetBadgeLevel

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

func (m *MockRepo) AppendMetadata(metadata ...string)

AppendMetadata mocks base method.

func (*MockRepo) EXPECT

func (m *MockRepo) EXPECT() *MockRepoMockRecorder

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

func (*MockRepo) Host

func (m *MockRepo) Host() string

Host mocks base method.

func (*MockRepo) IsValid

func (m *MockRepo) IsValid() error

IsValid mocks base method.

func (*MockRepo) Metadata

func (m *MockRepo) Metadata() []string

Metadata mocks base method.

func (*MockRepo) String

func (m *MockRepo) String() string

String mocks base method.

func (*MockRepo) URI

func (m *MockRepo) URI() string

URI mocks base method.

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) Close

func (m *MockRepoClient) Close() error

Close mocks base method.

func (*MockRepoClient) EXPECT

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) InitRepo

func (m *MockRepoClient) InitRepo(repo clients.Repo, commitSHA string, commitDepth int) error

InitRepo 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) ListFiles

func (m *MockRepoClient) ListFiles(predicate func(string) (bool, error)) ([]string, error)

ListFiles 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

Search mocks base method.

func (*MockRepoClient) SearchCommits

func (m *MockRepoClient) SearchCommits(request clients.SearchCommitsOptions) ([]clients.Commit, error)

SearchCommits mocks base method.

func (*MockRepoClient) URI

func (m *MockRepoClient) URI() string

URI 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

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

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.

Jump to

Keyboard shortcuts

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