Documentation ¶
Index ¶
- type RemoteGitClient
- func (_m *RemoteGitClient) CloneRepo(ctx context.Context, owner string, repo string, branch string, dir string, ...) error
- func (_m *RemoteGitClient) DoesBranchExist(ctx context.Context, owner string, repo string, branch string, ...) (bool, error)
- func (_m *RemoteGitClient) EXPECT() *RemoteGitClient_Expecter
- func (_m *RemoteGitClient) GetCloneParams() []string
- func (_m *RemoteGitClient) GetCloneToken(ctx context.Context, owner string, repo string) (string, error)
- func (_m *RemoteGitClient) GetCloneUrl() string
- func (_m *RemoteGitClient) GetDefaultBranch(ctx context.Context, owner string, repo string, branchOwner string) (string, error)
- type RemoteGitClient_CloneRepo_Call
- func (_c *RemoteGitClient_CloneRepo_Call) Return(_a0 error) *RemoteGitClient_CloneRepo_Call
- func (_c *RemoteGitClient_CloneRepo_Call) Run(...) *RemoteGitClient_CloneRepo_Call
- func (_c *RemoteGitClient_CloneRepo_Call) RunAndReturn(run func(context.Context, string, string, string, string, bool) error) *RemoteGitClient_CloneRepo_Call
- type RemoteGitClient_DoesBranchExist_Call
- func (_c *RemoteGitClient_DoesBranchExist_Call) Return(_a0 bool, _a1 error) *RemoteGitClient_DoesBranchExist_Call
- func (_c *RemoteGitClient_DoesBranchExist_Call) Run(run func(ctx context.Context, owner string, repo string, branch string, ...)) *RemoteGitClient_DoesBranchExist_Call
- func (_c *RemoteGitClient_DoesBranchExist_Call) RunAndReturn(run func(context.Context, string, string, string, string) (bool, error)) *RemoteGitClient_DoesBranchExist_Call
- type RemoteGitClient_Expecter
- func (_e *RemoteGitClient_Expecter) CloneRepo(ctx interface{}, owner interface{}, repo interface{}, branch interface{}, ...) *RemoteGitClient_CloneRepo_Call
- func (_e *RemoteGitClient_Expecter) DoesBranchExist(ctx interface{}, owner interface{}, repo interface{}, branch interface{}, ...) *RemoteGitClient_DoesBranchExist_Call
- func (_e *RemoteGitClient_Expecter) GetCloneParams() *RemoteGitClient_GetCloneParams_Call
- func (_e *RemoteGitClient_Expecter) GetCloneToken(ctx interface{}, owner interface{}, repo interface{}) *RemoteGitClient_GetCloneToken_Call
- func (_e *RemoteGitClient_Expecter) GetCloneUrl() *RemoteGitClient_GetCloneUrl_Call
- func (_e *RemoteGitClient_Expecter) GetDefaultBranch(ctx interface{}, owner interface{}, repo interface{}, branchOwner interface{}) *RemoteGitClient_GetDefaultBranch_Call
- type RemoteGitClient_GetCloneParams_Call
- func (_c *RemoteGitClient_GetCloneParams_Call) Return(_a0 []string) *RemoteGitClient_GetCloneParams_Call
- func (_c *RemoteGitClient_GetCloneParams_Call) Run(run func()) *RemoteGitClient_GetCloneParams_Call
- func (_c *RemoteGitClient_GetCloneParams_Call) RunAndReturn(run func() []string) *RemoteGitClient_GetCloneParams_Call
- type RemoteGitClient_GetCloneToken_Call
- func (_c *RemoteGitClient_GetCloneToken_Call) Return(_a0 string, _a1 error) *RemoteGitClient_GetCloneToken_Call
- func (_c *RemoteGitClient_GetCloneToken_Call) Run(run func(ctx context.Context, owner string, repo string)) *RemoteGitClient_GetCloneToken_Call
- func (_c *RemoteGitClient_GetCloneToken_Call) RunAndReturn(run func(context.Context, string, string) (string, error)) *RemoteGitClient_GetCloneToken_Call
- type RemoteGitClient_GetCloneUrl_Call
- func (_c *RemoteGitClient_GetCloneUrl_Call) Return(_a0 string) *RemoteGitClient_GetCloneUrl_Call
- func (_c *RemoteGitClient_GetCloneUrl_Call) Run(run func()) *RemoteGitClient_GetCloneUrl_Call
- func (_c *RemoteGitClient_GetCloneUrl_Call) RunAndReturn(run func() string) *RemoteGitClient_GetCloneUrl_Call
- type RemoteGitClient_GetDefaultBranch_Call
- func (_c *RemoteGitClient_GetDefaultBranch_Call) Return(_a0 string, _a1 error) *RemoteGitClient_GetDefaultBranch_Call
- func (_c *RemoteGitClient_GetDefaultBranch_Call) Run(run func(ctx context.Context, owner string, repo string, branchOwner string)) *RemoteGitClient_GetDefaultBranch_Call
- func (_c *RemoteGitClient_GetDefaultBranch_Call) RunAndReturn(run func(context.Context, string, string, string) (string, error)) *RemoteGitClient_GetDefaultBranch_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RemoteGitClient ¶
RemoteGitClient is an autogenerated mock type for the RemoteGitClient type
func NewRemoteGitClient ¶
func NewRemoteGitClient(t mockConstructorTestingTNewRemoteGitClient) *RemoteGitClient
NewRemoteGitClient creates a new instance of RemoteGitClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RemoteGitClient) CloneRepo ¶
func (_m *RemoteGitClient) CloneRepo(ctx context.Context, owner string, repo string, branch string, dir string, isPublic bool) error
CloneRepo provides a mock function with given fields: ctx, owner, repo, branch, dir, isPublic
func (*RemoteGitClient) DoesBranchExist ¶
func (_m *RemoteGitClient) DoesBranchExist(ctx context.Context, owner string, repo string, branch string, branchOwner string) (bool, error)
DoesBranchExist provides a mock function with given fields: ctx, owner, repo, branch, branchOwner
func (*RemoteGitClient) EXPECT ¶
func (_m *RemoteGitClient) EXPECT() *RemoteGitClient_Expecter
func (*RemoteGitClient) GetCloneParams ¶
func (_m *RemoteGitClient) GetCloneParams() []string
GetCloneParams provides a mock function with given fields:
func (*RemoteGitClient) GetCloneToken ¶
func (_m *RemoteGitClient) GetCloneToken(ctx context.Context, owner string, repo string) (string, error)
GetCloneToken provides a mock function with given fields: ctx, owner, repo
func (*RemoteGitClient) GetCloneUrl ¶
func (_m *RemoteGitClient) GetCloneUrl() string
GetCloneUrl provides a mock function with given fields:
func (*RemoteGitClient) GetDefaultBranch ¶
func (_m *RemoteGitClient) GetDefaultBranch(ctx context.Context, owner string, repo string, branchOwner string) (string, error)
GetDefaultBranch provides a mock function with given fields: ctx, owner, repo, branchOwner
type RemoteGitClient_CloneRepo_Call ¶
RemoteGitClient_CloneRepo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CloneRepo'
func (*RemoteGitClient_CloneRepo_Call) Return ¶
func (_c *RemoteGitClient_CloneRepo_Call) Return(_a0 error) *RemoteGitClient_CloneRepo_Call
func (*RemoteGitClient_CloneRepo_Call) Run ¶
func (_c *RemoteGitClient_CloneRepo_Call) Run(run func(ctx context.Context, owner string, repo string, branch string, dir string, isPublic bool)) *RemoteGitClient_CloneRepo_Call
func (*RemoteGitClient_CloneRepo_Call) RunAndReturn ¶
func (_c *RemoteGitClient_CloneRepo_Call) RunAndReturn(run func(context.Context, string, string, string, string, bool) error) *RemoteGitClient_CloneRepo_Call
type RemoteGitClient_DoesBranchExist_Call ¶
RemoteGitClient_DoesBranchExist_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DoesBranchExist'
func (*RemoteGitClient_DoesBranchExist_Call) Return ¶
func (_c *RemoteGitClient_DoesBranchExist_Call) Return(_a0 bool, _a1 error) *RemoteGitClient_DoesBranchExist_Call
func (*RemoteGitClient_DoesBranchExist_Call) Run ¶
func (_c *RemoteGitClient_DoesBranchExist_Call) Run(run func(ctx context.Context, owner string, repo string, branch string, branchOwner string)) *RemoteGitClient_DoesBranchExist_Call
func (*RemoteGitClient_DoesBranchExist_Call) RunAndReturn ¶
func (_c *RemoteGitClient_DoesBranchExist_Call) RunAndReturn(run func(context.Context, string, string, string, string) (bool, error)) *RemoteGitClient_DoesBranchExist_Call
type RemoteGitClient_Expecter ¶
type RemoteGitClient_Expecter struct {
// contains filtered or unexported fields
}
func (*RemoteGitClient_Expecter) CloneRepo ¶
func (_e *RemoteGitClient_Expecter) CloneRepo(ctx interface{}, owner interface{}, repo interface{}, branch interface{}, dir interface{}, isPublic interface{}) *RemoteGitClient_CloneRepo_Call
CloneRepo is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- branch string
- dir string
- isPublic bool
func (*RemoteGitClient_Expecter) DoesBranchExist ¶
func (_e *RemoteGitClient_Expecter) DoesBranchExist(ctx interface{}, owner interface{}, repo interface{}, branch interface{}, branchOwner interface{}) *RemoteGitClient_DoesBranchExist_Call
DoesBranchExist is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- branch string
- branchOwner string
func (*RemoteGitClient_Expecter) GetCloneParams ¶
func (_e *RemoteGitClient_Expecter) GetCloneParams() *RemoteGitClient_GetCloneParams_Call
GetCloneParams is a helper method to define mock.On call
func (*RemoteGitClient_Expecter) GetCloneToken ¶
func (_e *RemoteGitClient_Expecter) GetCloneToken(ctx interface{}, owner interface{}, repo interface{}) *RemoteGitClient_GetCloneToken_Call
GetCloneToken is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
func (*RemoteGitClient_Expecter) GetCloneUrl ¶
func (_e *RemoteGitClient_Expecter) GetCloneUrl() *RemoteGitClient_GetCloneUrl_Call
GetCloneUrl is a helper method to define mock.On call
func (*RemoteGitClient_Expecter) GetDefaultBranch ¶
func (_e *RemoteGitClient_Expecter) GetDefaultBranch(ctx interface{}, owner interface{}, repo interface{}, branchOwner interface{}) *RemoteGitClient_GetDefaultBranch_Call
GetDefaultBranch is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- branchOwner string
type RemoteGitClient_GetCloneParams_Call ¶
RemoteGitClient_GetCloneParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCloneParams'
func (*RemoteGitClient_GetCloneParams_Call) Return ¶
func (_c *RemoteGitClient_GetCloneParams_Call) Return(_a0 []string) *RemoteGitClient_GetCloneParams_Call
func (*RemoteGitClient_GetCloneParams_Call) Run ¶
func (_c *RemoteGitClient_GetCloneParams_Call) Run(run func()) *RemoteGitClient_GetCloneParams_Call
func (*RemoteGitClient_GetCloneParams_Call) RunAndReturn ¶
func (_c *RemoteGitClient_GetCloneParams_Call) RunAndReturn(run func() []string) *RemoteGitClient_GetCloneParams_Call
type RemoteGitClient_GetCloneToken_Call ¶
RemoteGitClient_GetCloneToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCloneToken'
func (*RemoteGitClient_GetCloneToken_Call) Return ¶
func (_c *RemoteGitClient_GetCloneToken_Call) Return(_a0 string, _a1 error) *RemoteGitClient_GetCloneToken_Call
func (*RemoteGitClient_GetCloneToken_Call) Run ¶
func (_c *RemoteGitClient_GetCloneToken_Call) Run(run func(ctx context.Context, owner string, repo string)) *RemoteGitClient_GetCloneToken_Call
func (*RemoteGitClient_GetCloneToken_Call) RunAndReturn ¶
func (_c *RemoteGitClient_GetCloneToken_Call) RunAndReturn(run func(context.Context, string, string) (string, error)) *RemoteGitClient_GetCloneToken_Call
type RemoteGitClient_GetCloneUrl_Call ¶
RemoteGitClient_GetCloneUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCloneUrl'
func (*RemoteGitClient_GetCloneUrl_Call) Return ¶
func (_c *RemoteGitClient_GetCloneUrl_Call) Return(_a0 string) *RemoteGitClient_GetCloneUrl_Call
func (*RemoteGitClient_GetCloneUrl_Call) Run ¶
func (_c *RemoteGitClient_GetCloneUrl_Call) Run(run func()) *RemoteGitClient_GetCloneUrl_Call
func (*RemoteGitClient_GetCloneUrl_Call) RunAndReturn ¶
func (_c *RemoteGitClient_GetCloneUrl_Call) RunAndReturn(run func() string) *RemoteGitClient_GetCloneUrl_Call
type RemoteGitClient_GetDefaultBranch_Call ¶
RemoteGitClient_GetDefaultBranch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultBranch'
func (*RemoteGitClient_GetDefaultBranch_Call) Return ¶
func (_c *RemoteGitClient_GetDefaultBranch_Call) Return(_a0 string, _a1 error) *RemoteGitClient_GetDefaultBranch_Call
func (*RemoteGitClient_GetDefaultBranch_Call) Run ¶
func (_c *RemoteGitClient_GetDefaultBranch_Call) Run(run func(ctx context.Context, owner string, repo string, branchOwner string)) *RemoteGitClient_GetDefaultBranch_Call
func (*RemoteGitClient_GetDefaultBranch_Call) RunAndReturn ¶
func (_c *RemoteGitClient_GetDefaultBranch_Call) RunAndReturn(run func(context.Context, string, string, string) (string, error)) *RemoteGitClient_GetDefaultBranch_Call