gitprovidersfakes

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeGitProvider added in v0.2.2

type FakeGitProvider struct {
	CreatePullRequestToOrgRepoStub func(gitprovider.OrgRepositoryRef, string, string, []gitprovider.CommitFile, string, string, string) (gitprovider.PullRequest, error)

	CreatePullRequestToUserRepoStub func(gitprovider.UserRepositoryRef, string, string, []gitprovider.CommitFile, string, string, string) (gitprovider.PullRequest, error)

	CreateRepositoryStub func(string, string, bool) error

	DeployKeyExistsStub func(string, string) (bool, error)

	GetAccountTypeStub func(string) (gitproviders.ProviderAccountType, error)

	GetCommitsFromOrgRepoStub func(gitprovider.OrgRepositoryRef, string) ([]gitprovider.Commit, error)

	GetCommitsFromUserRepoStub func(gitprovider.UserRepositoryRef, string) ([]gitprovider.Commit, error)

	GetDefaultBranchStub func(string) (string, error)

	GetRepoInfoStub func(gitproviders.ProviderAccountType, string, string) (*gitprovider.RepositoryInfo, error)

	GetRepoInfoFromUrlStub func(string) (*gitprovider.RepositoryInfo, error)

	RepositoryExistsStub func(string, string) (bool, error)

	UploadDeployKeyStub func(string, string, []byte) error
	// contains filtered or unexported fields
}

func (*FakeGitProvider) CreatePullRequestToOrgRepo added in v0.2.2

func (fake *FakeGitProvider) CreatePullRequestToOrgRepo(arg1 gitprovider.OrgRepositoryRef, arg2 string, arg3 string, arg4 []gitprovider.CommitFile, arg5 string, arg6 string, arg7 string) (gitprovider.PullRequest, error)

func (*FakeGitProvider) CreatePullRequestToOrgRepoArgsForCall added in v0.2.2

func (fake *FakeGitProvider) CreatePullRequestToOrgRepoArgsForCall(i int) (gitprovider.OrgRepositoryRef, string, string, []gitprovider.CommitFile, string, string, string)

func (*FakeGitProvider) CreatePullRequestToOrgRepoCallCount added in v0.2.2

func (fake *FakeGitProvider) CreatePullRequestToOrgRepoCallCount() int

func (*FakeGitProvider) CreatePullRequestToOrgRepoCalls added in v0.2.2

func (fake *FakeGitProvider) CreatePullRequestToOrgRepoCalls(stub func(gitprovider.OrgRepositoryRef, string, string, []gitprovider.CommitFile, string, string, string) (gitprovider.PullRequest, error))

func (*FakeGitProvider) CreatePullRequestToOrgRepoReturns added in v0.2.2

func (fake *FakeGitProvider) CreatePullRequestToOrgRepoReturns(result1 gitprovider.PullRequest, result2 error)

func (*FakeGitProvider) CreatePullRequestToOrgRepoReturnsOnCall added in v0.2.2

func (fake *FakeGitProvider) CreatePullRequestToOrgRepoReturnsOnCall(i int, result1 gitprovider.PullRequest, result2 error)

func (*FakeGitProvider) CreatePullRequestToUserRepo added in v0.2.2

func (fake *FakeGitProvider) CreatePullRequestToUserRepo(arg1 gitprovider.UserRepositoryRef, arg2 string, arg3 string, arg4 []gitprovider.CommitFile, arg5 string, arg6 string, arg7 string) (gitprovider.PullRequest, error)

func (*FakeGitProvider) CreatePullRequestToUserRepoArgsForCall added in v0.2.2

func (fake *FakeGitProvider) CreatePullRequestToUserRepoArgsForCall(i int) (gitprovider.UserRepositoryRef, string, string, []gitprovider.CommitFile, string, string, string)

func (*FakeGitProvider) CreatePullRequestToUserRepoCallCount added in v0.2.2

func (fake *FakeGitProvider) CreatePullRequestToUserRepoCallCount() int

func (*FakeGitProvider) CreatePullRequestToUserRepoCalls added in v0.2.2

func (fake *FakeGitProvider) CreatePullRequestToUserRepoCalls(stub func(gitprovider.UserRepositoryRef, string, string, []gitprovider.CommitFile, string, string, string) (gitprovider.PullRequest, error))

func (*FakeGitProvider) CreatePullRequestToUserRepoReturns added in v0.2.2

func (fake *FakeGitProvider) CreatePullRequestToUserRepoReturns(result1 gitprovider.PullRequest, result2 error)

func (*FakeGitProvider) CreatePullRequestToUserRepoReturnsOnCall added in v0.2.2

func (fake *FakeGitProvider) CreatePullRequestToUserRepoReturnsOnCall(i int, result1 gitprovider.PullRequest, result2 error)

func (*FakeGitProvider) CreateRepository added in v0.2.2

func (fake *FakeGitProvider) CreateRepository(arg1 string, arg2 string, arg3 bool) error

func (*FakeGitProvider) CreateRepositoryArgsForCall added in v0.2.2

func (fake *FakeGitProvider) CreateRepositoryArgsForCall(i int) (string, string, bool)

func (*FakeGitProvider) CreateRepositoryCallCount added in v0.2.2

func (fake *FakeGitProvider) CreateRepositoryCallCount() int

func (*FakeGitProvider) CreateRepositoryCalls added in v0.2.2

func (fake *FakeGitProvider) CreateRepositoryCalls(stub func(string, string, bool) error)

func (*FakeGitProvider) CreateRepositoryReturns added in v0.2.2

func (fake *FakeGitProvider) CreateRepositoryReturns(result1 error)

func (*FakeGitProvider) CreateRepositoryReturnsOnCall added in v0.2.2

func (fake *FakeGitProvider) CreateRepositoryReturnsOnCall(i int, result1 error)

func (*FakeGitProvider) DeployKeyExists added in v0.2.2

func (fake *FakeGitProvider) DeployKeyExists(arg1 string, arg2 string) (bool, error)

func (*FakeGitProvider) DeployKeyExistsArgsForCall added in v0.2.2

func (fake *FakeGitProvider) DeployKeyExistsArgsForCall(i int) (string, string)

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(string, string) (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) GetAccountType added in v0.2.2

func (fake *FakeGitProvider) GetAccountType(arg1 string) (gitproviders.ProviderAccountType, error)

func (*FakeGitProvider) GetAccountTypeArgsForCall added in v0.2.2

func (fake *FakeGitProvider) GetAccountTypeArgsForCall(i int) string

func (*FakeGitProvider) GetAccountTypeCallCount added in v0.2.2

func (fake *FakeGitProvider) GetAccountTypeCallCount() int

func (*FakeGitProvider) GetAccountTypeCalls added in v0.2.2

func (fake *FakeGitProvider) GetAccountTypeCalls(stub func(string) (gitproviders.ProviderAccountType, error))

func (*FakeGitProvider) GetAccountTypeReturns added in v0.2.2

func (fake *FakeGitProvider) GetAccountTypeReturns(result1 gitproviders.ProviderAccountType, result2 error)

func (*FakeGitProvider) GetAccountTypeReturnsOnCall added in v0.2.2

func (fake *FakeGitProvider) GetAccountTypeReturnsOnCall(i int, result1 gitproviders.ProviderAccountType, result2 error)

func (*FakeGitProvider) GetCommitsFromOrgRepo added in v0.2.3

func (fake *FakeGitProvider) GetCommitsFromOrgRepo(arg1 gitprovider.OrgRepositoryRef, arg2 string) ([]gitprovider.Commit, error)

func (*FakeGitProvider) GetCommitsFromOrgRepoArgsForCall added in v0.2.3

func (fake *FakeGitProvider) GetCommitsFromOrgRepoArgsForCall(i int) (gitprovider.OrgRepositoryRef, string)

func (*FakeGitProvider) GetCommitsFromOrgRepoCallCount added in v0.2.3

func (fake *FakeGitProvider) GetCommitsFromOrgRepoCallCount() int

func (*FakeGitProvider) GetCommitsFromOrgRepoCalls added in v0.2.3

func (fake *FakeGitProvider) GetCommitsFromOrgRepoCalls(stub func(gitprovider.OrgRepositoryRef, string) ([]gitprovider.Commit, error))

func (*FakeGitProvider) GetCommitsFromOrgRepoReturns added in v0.2.3

func (fake *FakeGitProvider) GetCommitsFromOrgRepoReturns(result1 []gitprovider.Commit, result2 error)

func (*FakeGitProvider) GetCommitsFromOrgRepoReturnsOnCall added in v0.2.3

func (fake *FakeGitProvider) GetCommitsFromOrgRepoReturnsOnCall(i int, result1 []gitprovider.Commit, result2 error)

func (*FakeGitProvider) GetCommitsFromUserRepo added in v0.2.3

func (fake *FakeGitProvider) GetCommitsFromUserRepo(arg1 gitprovider.UserRepositoryRef, arg2 string) ([]gitprovider.Commit, error)

func (*FakeGitProvider) GetCommitsFromUserRepoArgsForCall added in v0.2.3

func (fake *FakeGitProvider) GetCommitsFromUserRepoArgsForCall(i int) (gitprovider.UserRepositoryRef, string)

func (*FakeGitProvider) GetCommitsFromUserRepoCallCount added in v0.2.3

func (fake *FakeGitProvider) GetCommitsFromUserRepoCallCount() int

func (*FakeGitProvider) GetCommitsFromUserRepoCalls added in v0.2.3

func (fake *FakeGitProvider) GetCommitsFromUserRepoCalls(stub func(gitprovider.UserRepositoryRef, string) ([]gitprovider.Commit, error))

func (*FakeGitProvider) GetCommitsFromUserRepoReturns added in v0.2.3

func (fake *FakeGitProvider) GetCommitsFromUserRepoReturns(result1 []gitprovider.Commit, result2 error)

func (*FakeGitProvider) GetCommitsFromUserRepoReturnsOnCall added in v0.2.3

func (fake *FakeGitProvider) GetCommitsFromUserRepoReturnsOnCall(i int, result1 []gitprovider.Commit, result2 error)

func (*FakeGitProvider) GetDefaultBranch added in v0.2.3

func (fake *FakeGitProvider) GetDefaultBranch(arg1 string) (string, error)

func (*FakeGitProvider) GetDefaultBranchArgsForCall added in v0.2.3

func (fake *FakeGitProvider) GetDefaultBranchArgsForCall(i int) string

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(string) (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) GetRepoInfo added in v0.2.3

func (*FakeGitProvider) GetRepoInfoArgsForCall added in v0.2.3

func (fake *FakeGitProvider) GetRepoInfoArgsForCall(i int) (gitproviders.ProviderAccountType, string, string)

func (*FakeGitProvider) GetRepoInfoCallCount added in v0.2.3

func (fake *FakeGitProvider) GetRepoInfoCallCount() int

func (*FakeGitProvider) GetRepoInfoCalls added in v0.2.3

func (*FakeGitProvider) GetRepoInfoFromUrl added in v0.2.3

func (fake *FakeGitProvider) GetRepoInfoFromUrl(arg1 string) (*gitprovider.RepositoryInfo, error)

func (*FakeGitProvider) GetRepoInfoFromUrlArgsForCall added in v0.2.3

func (fake *FakeGitProvider) GetRepoInfoFromUrlArgsForCall(i int) string

func (*FakeGitProvider) GetRepoInfoFromUrlCallCount added in v0.2.3

func (fake *FakeGitProvider) GetRepoInfoFromUrlCallCount() int

func (*FakeGitProvider) GetRepoInfoFromUrlCalls added in v0.2.3

func (fake *FakeGitProvider) GetRepoInfoFromUrlCalls(stub func(string) (*gitprovider.RepositoryInfo, error))

func (*FakeGitProvider) GetRepoInfoFromUrlReturns added in v0.2.3

func (fake *FakeGitProvider) GetRepoInfoFromUrlReturns(result1 *gitprovider.RepositoryInfo, result2 error)

func (*FakeGitProvider) GetRepoInfoFromUrlReturnsOnCall added in v0.2.3

func (fake *FakeGitProvider) GetRepoInfoFromUrlReturnsOnCall(i int, result1 *gitprovider.RepositoryInfo, result2 error)

func (*FakeGitProvider) GetRepoInfoReturns added in v0.2.3

func (fake *FakeGitProvider) GetRepoInfoReturns(result1 *gitprovider.RepositoryInfo, result2 error)

func (*FakeGitProvider) GetRepoInfoReturnsOnCall added in v0.2.3

func (fake *FakeGitProvider) GetRepoInfoReturnsOnCall(i int, result1 *gitprovider.RepositoryInfo, result2 error)

func (*FakeGitProvider) Invocations added in v0.2.2

func (fake *FakeGitProvider) Invocations() map[string][][]interface{}

func (*FakeGitProvider) RepositoryExists added in v0.2.2

func (fake *FakeGitProvider) RepositoryExists(arg1 string, arg2 string) (bool, error)

func (*FakeGitProvider) RepositoryExistsArgsForCall added in v0.2.2

func (fake *FakeGitProvider) RepositoryExistsArgsForCall(i int) (string, string)

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(string, string) (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 string, arg2 string, arg3 []byte) error

func (*FakeGitProvider) UploadDeployKeyArgsForCall added in v0.2.2

func (fake *FakeGitProvider) UploadDeployKeyArgsForCall(i int) (string, string, []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(string, string, []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)

Jump to

Keyboard shortcuts

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