Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type FakeClient
- func (fake *FakeClient) GetProvider(arg1 gitproviders.RepoURL, arg2 gitproviders.AccountTypeGetter) (gitproviders.GitProvider, error)
- func (fake *FakeClient) GetProviderArgsForCall(i int) (gitproviders.RepoURL, gitproviders.AccountTypeGetter)
- func (fake *FakeClient) GetProviderCallCount() int
- func (fake *FakeClient) GetProviderCalls(...)
- func (fake *FakeClient) GetProviderReturns(result1 gitproviders.GitProvider, result2 error)
- func (fake *FakeClient) GetProviderReturnsOnCall(i int, result1 gitproviders.GitProvider, result2 error)
- func (fake *FakeClient) Invocations() map[string][][]interface{}
- type FakeGitProvider
- func (fake *FakeGitProvider) CreatePullRequest(arg1 context.Context, arg2 gitproviders.RepoURL, ...) (gitprovider.PullRequest, error)
- func (fake *FakeGitProvider) CreatePullRequestArgsForCall(i int) (context.Context, gitproviders.RepoURL, gitproviders.PullRequestInfo)
- func (fake *FakeGitProvider) CreatePullRequestCallCount() int
- func (fake *FakeGitProvider) CreatePullRequestCalls(...)
- func (fake *FakeGitProvider) CreatePullRequestReturns(result1 gitprovider.PullRequest, result2 error)
- func (fake *FakeGitProvider) CreatePullRequestReturnsOnCall(i int, result1 gitprovider.PullRequest, result2 error)
- func (fake *FakeGitProvider) DeployKeyExists(arg1 context.Context, arg2 gitproviders.RepoURL) (bool, error)
- func (fake *FakeGitProvider) DeployKeyExistsArgsForCall(i int) (context.Context, gitproviders.RepoURL)
- func (fake *FakeGitProvider) DeployKeyExistsCallCount() int
- func (fake *FakeGitProvider) DeployKeyExistsCalls(stub func(context.Context, gitproviders.RepoURL) (bool, error))
- func (fake *FakeGitProvider) DeployKeyExistsReturns(result1 bool, result2 error)
- func (fake *FakeGitProvider) DeployKeyExistsReturnsOnCall(i int, result1 bool, result2 error)
- func (fake *FakeGitProvider) GetCommits(arg1 context.Context, arg2 gitproviders.RepoURL, arg3 string, arg4 int, ...) ([]gitprovider.Commit, error)
- func (fake *FakeGitProvider) GetCommitsArgsForCall(i int) (context.Context, gitproviders.RepoURL, string, int, int)
- func (fake *FakeGitProvider) GetCommitsCallCount() int
- func (fake *FakeGitProvider) GetCommitsCalls(...)
- func (fake *FakeGitProvider) GetCommitsReturns(result1 []gitprovider.Commit, result2 error)
- func (fake *FakeGitProvider) GetCommitsReturnsOnCall(i int, result1 []gitprovider.Commit, result2 error)
- func (fake *FakeGitProvider) GetDefaultBranch(arg1 context.Context, arg2 gitproviders.RepoURL) (string, error)
- func (fake *FakeGitProvider) GetDefaultBranchArgsForCall(i int) (context.Context, gitproviders.RepoURL)
- func (fake *FakeGitProvider) GetDefaultBranchCallCount() int
- func (fake *FakeGitProvider) GetDefaultBranchCalls(stub func(context.Context, gitproviders.RepoURL) (string, error))
- func (fake *FakeGitProvider) GetDefaultBranchReturns(result1 string, result2 error)
- func (fake *FakeGitProvider) GetDefaultBranchReturnsOnCall(i int, result1 string, result2 error)
- func (fake *FakeGitProvider) GetProviderDomain() string
- func (fake *FakeGitProvider) GetProviderDomainCallCount() int
- func (fake *FakeGitProvider) GetProviderDomainCalls(stub func() string)
- func (fake *FakeGitProvider) GetProviderDomainReturns(result1 string)
- func (fake *FakeGitProvider) GetProviderDomainReturnsOnCall(i int, result1 string)
- func (fake *FakeGitProvider) GetRepoDirFiles(arg1 context.Context, arg2 gitproviders.RepoURL, arg3 string, arg4 string) ([]*gitprovider.CommitFile, error)
- func (fake *FakeGitProvider) GetRepoDirFilesArgsForCall(i int) (context.Context, gitproviders.RepoURL, string, string)
- func (fake *FakeGitProvider) GetRepoDirFilesCallCount() int
- func (fake *FakeGitProvider) GetRepoDirFilesCalls(...)
- func (fake *FakeGitProvider) GetRepoDirFilesReturns(result1 []*gitprovider.CommitFile, result2 error)
- func (fake *FakeGitProvider) GetRepoDirFilesReturnsOnCall(i int, result1 []*gitprovider.CommitFile, result2 error)
- func (fake *FakeGitProvider) GetRepoVisibility(arg1 context.Context, arg2 gitproviders.RepoURL) (*gitprovider.RepositoryVisibility, error)
- func (fake *FakeGitProvider) GetRepoVisibilityArgsForCall(i int) (context.Context, gitproviders.RepoURL)
- func (fake *FakeGitProvider) GetRepoVisibilityCallCount() int
- func (fake *FakeGitProvider) GetRepoVisibilityCalls(...)
- func (fake *FakeGitProvider) GetRepoVisibilityReturns(result1 *gitprovider.RepositoryVisibility, result2 error)
- func (fake *FakeGitProvider) GetRepoVisibilityReturnsOnCall(i int, result1 *gitprovider.RepositoryVisibility, result2 error)
- func (fake *FakeGitProvider) Invocations() map[string][][]interface{}
- func (fake *FakeGitProvider) MergePullRequest(arg1 context.Context, arg2 gitproviders.RepoURL, arg3 int, arg4 string) error
- func (fake *FakeGitProvider) MergePullRequestArgsForCall(i int) (context.Context, gitproviders.RepoURL, int, string)
- func (fake *FakeGitProvider) MergePullRequestCallCount() int
- func (fake *FakeGitProvider) MergePullRequestCalls(stub func(context.Context, gitproviders.RepoURL, int, string) error)
- func (fake *FakeGitProvider) MergePullRequestReturns(result1 error)
- func (fake *FakeGitProvider) MergePullRequestReturnsOnCall(i int, result1 error)
- func (fake *FakeGitProvider) RepositoryExists(arg1 context.Context, arg2 gitproviders.RepoURL) (bool, error)
- func (fake *FakeGitProvider) RepositoryExistsArgsForCall(i int) (context.Context, gitproviders.RepoURL)
- func (fake *FakeGitProvider) RepositoryExistsCallCount() int
- func (fake *FakeGitProvider) RepositoryExistsCalls(stub func(context.Context, gitproviders.RepoURL) (bool, error))
- func (fake *FakeGitProvider) RepositoryExistsReturns(result1 bool, result2 error)
- func (fake *FakeGitProvider) RepositoryExistsReturnsOnCall(i int, result1 bool, result2 error)
- func (fake *FakeGitProvider) UploadDeployKey(arg1 context.Context, arg2 gitproviders.RepoURL, arg3 []byte) error
- func (fake *FakeGitProvider) UploadDeployKeyArgsForCall(i int) (context.Context, gitproviders.RepoURL, []byte)
- func (fake *FakeGitProvider) UploadDeployKeyCallCount() int
- func (fake *FakeGitProvider) UploadDeployKeyCalls(stub func(context.Context, gitproviders.RepoURL, []byte) error)
- func (fake *FakeGitProvider) UploadDeployKeyReturns(result1 error)
- func (fake *FakeGitProvider) UploadDeployKeyReturnsOnCall(i int, result1 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClient ¶ added in v0.5.0
type FakeClient struct { GetProviderStub func(gitproviders.RepoURL, gitproviders.AccountTypeGetter) (gitproviders.GitProvider, error) // contains filtered or unexported fields }
func (*FakeClient) GetProvider ¶ added in v0.5.0
func (fake *FakeClient) GetProvider(arg1 gitproviders.RepoURL, arg2 gitproviders.AccountTypeGetter) (gitproviders.GitProvider, error)
func (*FakeClient) GetProviderArgsForCall ¶ added in v0.5.0
func (fake *FakeClient) GetProviderArgsForCall(i int) (gitproviders.RepoURL, gitproviders.AccountTypeGetter)
func (*FakeClient) GetProviderCallCount ¶ added in v0.5.0
func (fake *FakeClient) GetProviderCallCount() int
func (*FakeClient) GetProviderCalls ¶ added in v0.5.0
func (fake *FakeClient) GetProviderCalls(stub func(gitproviders.RepoURL, gitproviders.AccountTypeGetter) (gitproviders.GitProvider, error))
func (*FakeClient) GetProviderReturns ¶ added in v0.5.0
func (fake *FakeClient) GetProviderReturns(result1 gitproviders.GitProvider, result2 error)
func (*FakeClient) GetProviderReturnsOnCall ¶ added in v0.5.0
func (fake *FakeClient) GetProviderReturnsOnCall(i int, result1 gitproviders.GitProvider, result2 error)
func (*FakeClient) Invocations ¶ added in v0.5.0
func (fake *FakeClient) Invocations() map[string][][]interface{}
type FakeGitProvider ¶ added in v0.2.2
type FakeGitProvider struct { CreatePullRequestStub func(context.Context, gitproviders.RepoURL, gitproviders.PullRequestInfo) (gitprovider.PullRequest, error) DeployKeyExistsStub func(context.Context, gitproviders.RepoURL) (bool, error) GetCommitsStub func(context.Context, gitproviders.RepoURL, string, int, int) ([]gitprovider.Commit, error) GetDefaultBranchStub func(context.Context, gitproviders.RepoURL) (string, error) GetProviderDomainStub func() string GetRepoDirFilesStub func(context.Context, gitproviders.RepoURL, string, string) ([]*gitprovider.CommitFile, error) GetRepoVisibilityStub func(context.Context, gitproviders.RepoURL) (*gitprovider.RepositoryVisibility, error) MergePullRequestStub func(context.Context, gitproviders.RepoURL, int, string) error RepositoryExistsStub func(context.Context, gitproviders.RepoURL) (bool, error) UploadDeployKeyStub func(context.Context, gitproviders.RepoURL, []byte) error // contains filtered or unexported fields }
func (*FakeGitProvider) CreatePullRequest ¶ added in v0.3.1
func (fake *FakeGitProvider) CreatePullRequest(arg1 context.Context, arg2 gitproviders.RepoURL, arg3 gitproviders.PullRequestInfo) (gitprovider.PullRequest, error)
func (*FakeGitProvider) CreatePullRequestArgsForCall ¶ added in v0.3.1
func (fake *FakeGitProvider) CreatePullRequestArgsForCall(i int) (context.Context, gitproviders.RepoURL, gitproviders.PullRequestInfo)
func (*FakeGitProvider) CreatePullRequestCallCount ¶ added in v0.3.1
func (fake *FakeGitProvider) CreatePullRequestCallCount() int
func (*FakeGitProvider) CreatePullRequestCalls ¶ added in v0.3.1
func (fake *FakeGitProvider) CreatePullRequestCalls(stub func(context.Context, gitproviders.RepoURL, gitproviders.PullRequestInfo) (gitprovider.PullRequest, error))
func (*FakeGitProvider) CreatePullRequestReturns ¶ added in v0.3.1
func (fake *FakeGitProvider) CreatePullRequestReturns(result1 gitprovider.PullRequest, result2 error)
func (*FakeGitProvider) CreatePullRequestReturnsOnCall ¶ added in v0.3.1
func (fake *FakeGitProvider) CreatePullRequestReturnsOnCall(i int, result1 gitprovider.PullRequest, result2 error)
func (*FakeGitProvider) DeployKeyExists ¶ added in v0.2.2
func (fake *FakeGitProvider) DeployKeyExists(arg1 context.Context, arg2 gitproviders.RepoURL) (bool, error)
func (*FakeGitProvider) DeployKeyExistsArgsForCall ¶ added in v0.2.2
func (fake *FakeGitProvider) DeployKeyExistsArgsForCall(i int) (context.Context, gitproviders.RepoURL)
func (*FakeGitProvider) DeployKeyExistsCallCount ¶ added in v0.2.2
func (fake *FakeGitProvider) DeployKeyExistsCallCount() int
func (*FakeGitProvider) DeployKeyExistsCalls ¶ added in v0.2.2
func (fake *FakeGitProvider) DeployKeyExistsCalls(stub func(context.Context, gitproviders.RepoURL) (bool, error))
func (*FakeGitProvider) DeployKeyExistsReturns ¶ added in v0.2.2
func (fake *FakeGitProvider) DeployKeyExistsReturns(result1 bool, result2 error)
func (*FakeGitProvider) DeployKeyExistsReturnsOnCall ¶ added in v0.2.2
func (fake *FakeGitProvider) DeployKeyExistsReturnsOnCall(i int, result1 bool, result2 error)
func (*FakeGitProvider) GetCommits ¶ added in v0.3.1
func (fake *FakeGitProvider) GetCommits(arg1 context.Context, arg2 gitproviders.RepoURL, arg3 string, arg4 int, arg5 int) ([]gitprovider.Commit, error)
func (*FakeGitProvider) GetCommitsArgsForCall ¶ added in v0.3.1
func (fake *FakeGitProvider) GetCommitsArgsForCall(i int) (context.Context, gitproviders.RepoURL, string, int, int)
func (*FakeGitProvider) GetCommitsCallCount ¶ added in v0.3.1
func (fake *FakeGitProvider) GetCommitsCallCount() int
func (*FakeGitProvider) GetCommitsCalls ¶ added in v0.3.1
func (fake *FakeGitProvider) GetCommitsCalls(stub func(context.Context, gitproviders.RepoURL, string, int, int) ([]gitprovider.Commit, error))
func (*FakeGitProvider) GetCommitsReturns ¶ added in v0.3.1
func (fake *FakeGitProvider) GetCommitsReturns(result1 []gitprovider.Commit, result2 error)
func (*FakeGitProvider) GetCommitsReturnsOnCall ¶ added in v0.3.1
func (fake *FakeGitProvider) GetCommitsReturnsOnCall(i int, result1 []gitprovider.Commit, result2 error)
func (*FakeGitProvider) GetDefaultBranch ¶ added in v0.2.3
func (fake *FakeGitProvider) GetDefaultBranch(arg1 context.Context, arg2 gitproviders.RepoURL) (string, error)
func (*FakeGitProvider) GetDefaultBranchArgsForCall ¶ added in v0.2.3
func (fake *FakeGitProvider) GetDefaultBranchArgsForCall(i int) (context.Context, gitproviders.RepoURL)
func (*FakeGitProvider) GetDefaultBranchCallCount ¶ added in v0.2.3
func (fake *FakeGitProvider) GetDefaultBranchCallCount() int
func (*FakeGitProvider) GetDefaultBranchCalls ¶ added in v0.2.3
func (fake *FakeGitProvider) GetDefaultBranchCalls(stub func(context.Context, gitproviders.RepoURL) (string, error))
func (*FakeGitProvider) GetDefaultBranchReturns ¶ added in v0.2.3
func (fake *FakeGitProvider) GetDefaultBranchReturns(result1 string, result2 error)
func (*FakeGitProvider) GetDefaultBranchReturnsOnCall ¶ added in v0.2.3
func (fake *FakeGitProvider) GetDefaultBranchReturnsOnCall(i int, result1 string, result2 error)
func (*FakeGitProvider) GetProviderDomain ¶ added in v0.3.0
func (fake *FakeGitProvider) GetProviderDomain() string
func (*FakeGitProvider) GetProviderDomainCallCount ¶ added in v0.3.0
func (fake *FakeGitProvider) GetProviderDomainCallCount() int
func (*FakeGitProvider) GetProviderDomainCalls ¶ added in v0.3.0
func (fake *FakeGitProvider) GetProviderDomainCalls(stub func() string)
func (*FakeGitProvider) GetProviderDomainReturns ¶ added in v0.3.0
func (fake *FakeGitProvider) GetProviderDomainReturns(result1 string)
func (*FakeGitProvider) GetProviderDomainReturnsOnCall ¶ added in v0.3.0
func (fake *FakeGitProvider) GetProviderDomainReturnsOnCall(i int, result1 string)
func (*FakeGitProvider) GetRepoDirFiles ¶ added in v0.7.0
func (fake *FakeGitProvider) GetRepoDirFiles(arg1 context.Context, arg2 gitproviders.RepoURL, arg3 string, arg4 string) ([]*gitprovider.CommitFile, error)
func (*FakeGitProvider) GetRepoDirFilesArgsForCall ¶ added in v0.7.0
func (fake *FakeGitProvider) GetRepoDirFilesArgsForCall(i int) (context.Context, gitproviders.RepoURL, string, string)
func (*FakeGitProvider) GetRepoDirFilesCallCount ¶ added in v0.7.0
func (fake *FakeGitProvider) GetRepoDirFilesCallCount() int
func (*FakeGitProvider) GetRepoDirFilesCalls ¶ added in v0.7.0
func (fake *FakeGitProvider) GetRepoDirFilesCalls(stub func(context.Context, gitproviders.RepoURL, string, string) ([]*gitprovider.CommitFile, error))
func (*FakeGitProvider) GetRepoDirFilesReturns ¶ added in v0.7.0
func (fake *FakeGitProvider) GetRepoDirFilesReturns(result1 []*gitprovider.CommitFile, result2 error)
func (*FakeGitProvider) GetRepoDirFilesReturnsOnCall ¶ added in v0.7.0
func (fake *FakeGitProvider) GetRepoDirFilesReturnsOnCall(i int, result1 []*gitprovider.CommitFile, result2 error)
func (*FakeGitProvider) GetRepoVisibility ¶ added in v0.2.5
func (fake *FakeGitProvider) GetRepoVisibility(arg1 context.Context, arg2 gitproviders.RepoURL) (*gitprovider.RepositoryVisibility, error)
func (*FakeGitProvider) GetRepoVisibilityArgsForCall ¶ added in v0.2.5
func (fake *FakeGitProvider) GetRepoVisibilityArgsForCall(i int) (context.Context, gitproviders.RepoURL)
func (*FakeGitProvider) GetRepoVisibilityCallCount ¶ added in v0.2.5
func (fake *FakeGitProvider) GetRepoVisibilityCallCount() int
func (*FakeGitProvider) GetRepoVisibilityCalls ¶ added in v0.2.5
func (fake *FakeGitProvider) GetRepoVisibilityCalls(stub func(context.Context, gitproviders.RepoURL) (*gitprovider.RepositoryVisibility, error))
func (*FakeGitProvider) GetRepoVisibilityReturns ¶ added in v0.2.5
func (fake *FakeGitProvider) GetRepoVisibilityReturns(result1 *gitprovider.RepositoryVisibility, result2 error)
func (*FakeGitProvider) GetRepoVisibilityReturnsOnCall ¶ added in v0.2.5
func (fake *FakeGitProvider) GetRepoVisibilityReturnsOnCall(i int, result1 *gitprovider.RepositoryVisibility, result2 error)
func (*FakeGitProvider) Invocations ¶ added in v0.2.2
func (fake *FakeGitProvider) Invocations() map[string][][]interface{}
func (*FakeGitProvider) MergePullRequest ¶ added in v0.7.0
func (fake *FakeGitProvider) MergePullRequest(arg1 context.Context, arg2 gitproviders.RepoURL, arg3 int, arg4 string) error
func (*FakeGitProvider) MergePullRequestArgsForCall ¶ added in v0.7.0
func (fake *FakeGitProvider) MergePullRequestArgsForCall(i int) (context.Context, gitproviders.RepoURL, int, string)
func (*FakeGitProvider) MergePullRequestCallCount ¶ added in v0.7.0
func (fake *FakeGitProvider) MergePullRequestCallCount() int
func (*FakeGitProvider) MergePullRequestCalls ¶ added in v0.7.0
func (fake *FakeGitProvider) MergePullRequestCalls(stub func(context.Context, gitproviders.RepoURL, int, string) error)
func (*FakeGitProvider) MergePullRequestReturns ¶ added in v0.7.0
func (fake *FakeGitProvider) MergePullRequestReturns(result1 error)
func (*FakeGitProvider) MergePullRequestReturnsOnCall ¶ added in v0.7.0
func (fake *FakeGitProvider) MergePullRequestReturnsOnCall(i int, result1 error)
func (*FakeGitProvider) RepositoryExists ¶ added in v0.2.2
func (fake *FakeGitProvider) RepositoryExists(arg1 context.Context, arg2 gitproviders.RepoURL) (bool, error)
func (*FakeGitProvider) RepositoryExistsArgsForCall ¶ added in v0.2.2
func (fake *FakeGitProvider) RepositoryExistsArgsForCall(i int) (context.Context, gitproviders.RepoURL)
func (*FakeGitProvider) RepositoryExistsCallCount ¶ added in v0.2.2
func (fake *FakeGitProvider) RepositoryExistsCallCount() int
func (*FakeGitProvider) RepositoryExistsCalls ¶ added in v0.2.2
func (fake *FakeGitProvider) RepositoryExistsCalls(stub func(context.Context, gitproviders.RepoURL) (bool, error))
func (*FakeGitProvider) RepositoryExistsReturns ¶ added in v0.2.2
func (fake *FakeGitProvider) RepositoryExistsReturns(result1 bool, result2 error)
func (*FakeGitProvider) RepositoryExistsReturnsOnCall ¶ added in v0.2.2
func (fake *FakeGitProvider) RepositoryExistsReturnsOnCall(i int, result1 bool, result2 error)
func (*FakeGitProvider) UploadDeployKey ¶ added in v0.2.2
func (fake *FakeGitProvider) UploadDeployKey(arg1 context.Context, arg2 gitproviders.RepoURL, arg3 []byte) error
func (*FakeGitProvider) UploadDeployKeyArgsForCall ¶ added in v0.2.2
func (fake *FakeGitProvider) UploadDeployKeyArgsForCall(i int) (context.Context, gitproviders.RepoURL, []byte)
func (*FakeGitProvider) UploadDeployKeyCallCount ¶ added in v0.2.2
func (fake *FakeGitProvider) UploadDeployKeyCallCount() int
func (*FakeGitProvider) UploadDeployKeyCalls ¶ added in v0.2.2
func (fake *FakeGitProvider) UploadDeployKeyCalls(stub func(context.Context, gitproviders.RepoURL, []byte) error)
func (*FakeGitProvider) UploadDeployKeyReturns ¶ added in v0.2.2
func (fake *FakeGitProvider) UploadDeployKeyReturns(result1 error)
func (*FakeGitProvider) UploadDeployKeyReturnsOnCall ¶ added in v0.2.2
func (fake *FakeGitProvider) UploadDeployKeyReturnsOnCall(i int, result1 error)
Click to show internal directories.
Click to hide internal directories.