Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockGit
- func (m *MockGit) Add(repoPath string, files ...string) error
- func (m *MockGit) AddRemote(repoPath, remoteName, remoteURL string) error
- func (m *MockGit) BranchExists(repoPath, branch string) (bool, error)
- func (m *MockGit) BranchExistsOnRemote(params git.BranchExistsOnRemoteParams) (bool, error)
- func (m *MockGit) CheckReferenceConflict(repoPath, branch string) error
- func (m *MockGit) CheckoutBranch(worktreePath, branch string) error
- func (m *MockGit) Clone(params git.CloneParams) error
- func (m *MockGit) Commit(repoPath, message string) error
- func (m *MockGit) ConfigGet(workDir, key string) (string, error)
- func (m *MockGit) CreateBranch(repoPath, branch string) error
- func (m *MockGit) CreateBranchFrom(params git.CreateBranchFromParams) error
- func (m *MockGit) CreateWorktree(repoPath, worktreePath, branch string) error
- func (m *MockGit) CreateWorktreeWithNoCheckout(repoPath, worktreePath, branch string) error
- func (m *MockGit) EXPECT() *MockGitMockRecorder
- func (m *MockGit) FetchRemote(repoPath, remoteName string) error
- func (m *MockGit) GetBranchRemote(repoPath, branch string) (string, error)
- func (m *MockGit) GetCurrentBranch(repoPath string) (string, error)
- func (m *MockGit) GetDefaultBranch(remoteURL string) (string, error)
- func (m *MockGit) GetRemoteURL(repoPath, remoteName string) (string, error)
- func (m *MockGit) GetRepositoryName(repoPath string) (string, error)
- func (m *MockGit) GetWorktreePath(repoPath, branch string) (string, error)
- func (m *MockGit) IsClean(repoPath string) (bool, error)
- func (m *MockGit) RemoteExists(repoPath, remoteName string) (bool, error)
- func (m *MockGit) RemoveWorktree(repoPath, worktreePath string, force bool) error
- func (m *MockGit) SetUpstreamBranch(repoPath, remote, branch string) error
- func (m *MockGit) Status(workDir string) (string, error)
- func (m *MockGit) WorktreeExists(repoPath, branch string) (bool, error)
- type MockGitMockRecorder
- func (mr *MockGitMockRecorder) Add(repoPath any, files ...any) *gomock.Call
- func (mr *MockGitMockRecorder) AddRemote(repoPath, remoteName, remoteURL any) *gomock.Call
- func (mr *MockGitMockRecorder) BranchExists(repoPath, branch any) *gomock.Call
- func (mr *MockGitMockRecorder) BranchExistsOnRemote(params any) *gomock.Call
- func (mr *MockGitMockRecorder) CheckReferenceConflict(repoPath, branch any) *gomock.Call
- func (mr *MockGitMockRecorder) CheckoutBranch(worktreePath, branch any) *gomock.Call
- func (mr *MockGitMockRecorder) Clone(params any) *gomock.Call
- func (mr *MockGitMockRecorder) Commit(repoPath, message any) *gomock.Call
- func (mr *MockGitMockRecorder) ConfigGet(workDir, key any) *gomock.Call
- func (mr *MockGitMockRecorder) CreateBranch(repoPath, branch any) *gomock.Call
- func (mr *MockGitMockRecorder) CreateBranchFrom(params any) *gomock.Call
- func (mr *MockGitMockRecorder) CreateWorktree(repoPath, worktreePath, branch any) *gomock.Call
- func (mr *MockGitMockRecorder) CreateWorktreeWithNoCheckout(repoPath, worktreePath, branch any) *gomock.Call
- func (mr *MockGitMockRecorder) FetchRemote(repoPath, remoteName any) *gomock.Call
- func (mr *MockGitMockRecorder) GetBranchRemote(repoPath, branch any) *gomock.Call
- func (mr *MockGitMockRecorder) GetCurrentBranch(repoPath any) *gomock.Call
- func (mr *MockGitMockRecorder) GetDefaultBranch(remoteURL any) *gomock.Call
- func (mr *MockGitMockRecorder) GetRemoteURL(repoPath, remoteName any) *gomock.Call
- func (mr *MockGitMockRecorder) GetRepositoryName(repoPath any) *gomock.Call
- func (mr *MockGitMockRecorder) GetWorktreePath(repoPath, branch any) *gomock.Call
- func (mr *MockGitMockRecorder) IsClean(repoPath any) *gomock.Call
- func (mr *MockGitMockRecorder) RemoteExists(repoPath, remoteName any) *gomock.Call
- func (mr *MockGitMockRecorder) RemoveWorktree(repoPath, worktreePath, force any) *gomock.Call
- func (mr *MockGitMockRecorder) SetUpstreamBranch(repoPath, remote, branch any) *gomock.Call
- func (mr *MockGitMockRecorder) Status(workDir any) *gomock.Call
- func (mr *MockGitMockRecorder) WorktreeExists(repoPath, branch any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGit ¶
type MockGit struct {
// contains filtered or unexported fields
}
MockGit is a mock of Git interface.
func NewMockGit ¶
func NewMockGit(ctrl *gomock.Controller) *MockGit
NewMockGit creates a new mock instance.
func (*MockGit) BranchExists ¶
BranchExists mocks base method.
func (*MockGit) BranchExistsOnRemote ¶
func (m *MockGit) BranchExistsOnRemote(params git.BranchExistsOnRemoteParams) (bool, error)
BranchExistsOnRemote mocks base method.
func (*MockGit) CheckReferenceConflict ¶
CheckReferenceConflict mocks base method.
func (*MockGit) CheckoutBranch ¶
CheckoutBranch mocks base method.
func (*MockGit) Clone ¶
func (m *MockGit) Clone(params git.CloneParams) error
Clone mocks base method.
func (*MockGit) CreateBranch ¶
CreateBranch mocks base method.
func (*MockGit) CreateBranchFrom ¶
func (m *MockGit) CreateBranchFrom(params git.CreateBranchFromParams) error
CreateBranchFrom mocks base method.
func (*MockGit) CreateWorktree ¶
CreateWorktree mocks base method.
func (*MockGit) CreateWorktreeWithNoCheckout ¶
CreateWorktreeWithNoCheckout mocks base method.
func (*MockGit) EXPECT ¶
func (m *MockGit) EXPECT() *MockGitMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGit) FetchRemote ¶
FetchRemote mocks base method.
func (*MockGit) GetBranchRemote ¶
GetBranchRemote mocks base method.
func (*MockGit) GetCurrentBranch ¶
GetCurrentBranch mocks base method.
func (*MockGit) GetDefaultBranch ¶
GetDefaultBranch mocks base method.
func (*MockGit) GetRemoteURL ¶
GetRemoteURL mocks base method.
func (*MockGit) GetRepositoryName ¶
GetRepositoryName mocks base method.
func (*MockGit) GetWorktreePath ¶
GetWorktreePath mocks base method.
func (*MockGit) RemoteExists ¶
RemoteExists mocks base method.
func (*MockGit) RemoveWorktree ¶
RemoveWorktree mocks base method.
func (*MockGit) SetUpstreamBranch ¶
SetUpstreamBranch mocks base method.
type MockGitMockRecorder ¶
type MockGitMockRecorder struct {
// contains filtered or unexported fields
}
MockGitMockRecorder is the mock recorder for MockGit.
func (*MockGitMockRecorder) Add ¶
func (mr *MockGitMockRecorder) Add(repoPath any, files ...any) *gomock.Call
Add indicates an expected call of Add.
func (*MockGitMockRecorder) AddRemote ¶
func (mr *MockGitMockRecorder) AddRemote(repoPath, remoteName, remoteURL any) *gomock.Call
AddRemote indicates an expected call of AddRemote.
func (*MockGitMockRecorder) BranchExists ¶
func (mr *MockGitMockRecorder) BranchExists(repoPath, branch any) *gomock.Call
BranchExists indicates an expected call of BranchExists.
func (*MockGitMockRecorder) BranchExistsOnRemote ¶
func (mr *MockGitMockRecorder) BranchExistsOnRemote(params any) *gomock.Call
BranchExistsOnRemote indicates an expected call of BranchExistsOnRemote.
func (*MockGitMockRecorder) CheckReferenceConflict ¶
func (mr *MockGitMockRecorder) CheckReferenceConflict(repoPath, branch any) *gomock.Call
CheckReferenceConflict indicates an expected call of CheckReferenceConflict.
func (*MockGitMockRecorder) CheckoutBranch ¶
func (mr *MockGitMockRecorder) CheckoutBranch(worktreePath, branch any) *gomock.Call
CheckoutBranch indicates an expected call of CheckoutBranch.
func (*MockGitMockRecorder) Clone ¶
func (mr *MockGitMockRecorder) Clone(params any) *gomock.Call
Clone indicates an expected call of Clone.
func (*MockGitMockRecorder) Commit ¶
func (mr *MockGitMockRecorder) Commit(repoPath, message any) *gomock.Call
Commit indicates an expected call of Commit.
func (*MockGitMockRecorder) ConfigGet ¶
func (mr *MockGitMockRecorder) ConfigGet(workDir, key any) *gomock.Call
ConfigGet indicates an expected call of ConfigGet.
func (*MockGitMockRecorder) CreateBranch ¶
func (mr *MockGitMockRecorder) CreateBranch(repoPath, branch any) *gomock.Call
CreateBranch indicates an expected call of CreateBranch.
func (*MockGitMockRecorder) CreateBranchFrom ¶
func (mr *MockGitMockRecorder) CreateBranchFrom(params any) *gomock.Call
CreateBranchFrom indicates an expected call of CreateBranchFrom.
func (*MockGitMockRecorder) CreateWorktree ¶
func (mr *MockGitMockRecorder) CreateWorktree(repoPath, worktreePath, branch any) *gomock.Call
CreateWorktree indicates an expected call of CreateWorktree.
func (*MockGitMockRecorder) CreateWorktreeWithNoCheckout ¶
func (mr *MockGitMockRecorder) CreateWorktreeWithNoCheckout(repoPath, worktreePath, branch any) *gomock.Call
CreateWorktreeWithNoCheckout indicates an expected call of CreateWorktreeWithNoCheckout.
func (*MockGitMockRecorder) FetchRemote ¶
func (mr *MockGitMockRecorder) FetchRemote(repoPath, remoteName any) *gomock.Call
FetchRemote indicates an expected call of FetchRemote.
func (*MockGitMockRecorder) GetBranchRemote ¶
func (mr *MockGitMockRecorder) GetBranchRemote(repoPath, branch any) *gomock.Call
GetBranchRemote indicates an expected call of GetBranchRemote.
func (*MockGitMockRecorder) GetCurrentBranch ¶
func (mr *MockGitMockRecorder) GetCurrentBranch(repoPath any) *gomock.Call
GetCurrentBranch indicates an expected call of GetCurrentBranch.
func (*MockGitMockRecorder) GetDefaultBranch ¶
func (mr *MockGitMockRecorder) GetDefaultBranch(remoteURL any) *gomock.Call
GetDefaultBranch indicates an expected call of GetDefaultBranch.
func (*MockGitMockRecorder) GetRemoteURL ¶
func (mr *MockGitMockRecorder) GetRemoteURL(repoPath, remoteName any) *gomock.Call
GetRemoteURL indicates an expected call of GetRemoteURL.
func (*MockGitMockRecorder) GetRepositoryName ¶
func (mr *MockGitMockRecorder) GetRepositoryName(repoPath any) *gomock.Call
GetRepositoryName indicates an expected call of GetRepositoryName.
func (*MockGitMockRecorder) GetWorktreePath ¶
func (mr *MockGitMockRecorder) GetWorktreePath(repoPath, branch any) *gomock.Call
GetWorktreePath indicates an expected call of GetWorktreePath.
func (*MockGitMockRecorder) IsClean ¶
func (mr *MockGitMockRecorder) IsClean(repoPath any) *gomock.Call
IsClean indicates an expected call of IsClean.
func (*MockGitMockRecorder) RemoteExists ¶
func (mr *MockGitMockRecorder) RemoteExists(repoPath, remoteName any) *gomock.Call
RemoteExists indicates an expected call of RemoteExists.
func (*MockGitMockRecorder) RemoveWorktree ¶
func (mr *MockGitMockRecorder) RemoveWorktree(repoPath, worktreePath, force any) *gomock.Call
RemoveWorktree indicates an expected call of RemoveWorktree.
func (*MockGitMockRecorder) SetUpstreamBranch ¶
func (mr *MockGitMockRecorder) SetUpstreamBranch(repoPath, remote, branch any) *gomock.Call
SetUpstreamBranch indicates an expected call of SetUpstreamBranch.
func (*MockGitMockRecorder) Status ¶
func (mr *MockGitMockRecorder) Status(workDir any) *gomock.Call
Status indicates an expected call of Status.
func (*MockGitMockRecorder) WorktreeExists ¶
func (mr *MockGitMockRecorder) WorktreeExists(repoPath, branch any) *gomock.Call
WorktreeExists indicates an expected call of WorktreeExists.