mocks

package
v0.0.0-...-cb886e6 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteGitClient

type RemoteGitClient struct {
	mock.Mock
}

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 (*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

type RemoteGitClient_CloneRepo_Call struct {
	*mock.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 (*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

type RemoteGitClient_DoesBranchExist_Call

type RemoteGitClient_DoesBranchExist_Call struct {
	*mock.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 (*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

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

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

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

type RemoteGitClient_GetCloneParams_Call struct {
	*mock.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 (*RemoteGitClient_GetCloneParams_Call) Run

func (*RemoteGitClient_GetCloneParams_Call) RunAndReturn

type RemoteGitClient_GetCloneToken_Call

type RemoteGitClient_GetCloneToken_Call struct {
	*mock.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 (*RemoteGitClient_GetCloneToken_Call) Run

func (*RemoteGitClient_GetCloneToken_Call) RunAndReturn

type RemoteGitClient_GetCloneUrl_Call

type RemoteGitClient_GetCloneUrl_Call struct {
	*mock.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 (*RemoteGitClient_GetCloneUrl_Call) Run

func (*RemoteGitClient_GetCloneUrl_Call) RunAndReturn

type RemoteGitClient_GetDefaultBranch_Call

type RemoteGitClient_GetDefaultBranch_Call struct {
	*mock.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 (*RemoteGitClient_GetDefaultBranch_Call) Run

func (*RemoteGitClient_GetDefaultBranch_Call) RunAndReturn

Jump to

Keyboard shortcuts

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