Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockWorktree
- func (m *MockWorktree) AddToStatus(params interfaces.AddToStatusParams) error
- func (m *MockWorktree) BuildPath(repoURL, remoteName, branch string) string
- func (m *MockWorktree) CheckoutBranch(worktreePath, branch string) error
- func (m *MockWorktree) CleanupDirectory(worktreePath string) error
- func (m *MockWorktree) Create(params interfaces.CreateParams) error
- func (m *MockWorktree) Delete(params interfaces.DeleteParams) error
- func (m *MockWorktree) EXPECT() *MockWorktreeMockRecorder
- func (m *MockWorktree) EnsureBranchExists(repoPath, branch string) error
- func (m *MockWorktree) Exists(repoPath, branch string) (bool, error)
- func (m *MockWorktree) RemoveFromStatus(repoURL, branch string) error
- func (m *MockWorktree) SetLogger(arg0 logger.Logger)
- func (m *MockWorktree) ValidateCreation(params interfaces.ValidateCreationParams) error
- func (m *MockWorktree) ValidateDeletion(params interfaces.ValidateDeletionParams) error
- type MockWorktreeMockRecorder
- func (mr *MockWorktreeMockRecorder) AddToStatus(params any) *gomock.Call
- func (mr *MockWorktreeMockRecorder) BuildPath(repoURL, remoteName, branch any) *gomock.Call
- func (mr *MockWorktreeMockRecorder) CheckoutBranch(worktreePath, branch any) *gomock.Call
- func (mr *MockWorktreeMockRecorder) CleanupDirectory(worktreePath any) *gomock.Call
- func (mr *MockWorktreeMockRecorder) Create(params any) *gomock.Call
- func (mr *MockWorktreeMockRecorder) Delete(params any) *gomock.Call
- func (mr *MockWorktreeMockRecorder) EnsureBranchExists(repoPath, branch any) *gomock.Call
- func (mr *MockWorktreeMockRecorder) Exists(repoPath, branch any) *gomock.Call
- func (mr *MockWorktreeMockRecorder) RemoveFromStatus(repoURL, branch any) *gomock.Call
- func (mr *MockWorktreeMockRecorder) SetLogger(arg0 any) *gomock.Call
- func (mr *MockWorktreeMockRecorder) ValidateCreation(params any) *gomock.Call
- func (mr *MockWorktreeMockRecorder) ValidateDeletion(params any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockWorktree ¶
type MockWorktree struct {
// contains filtered or unexported fields
}
MockWorktree is a mock of Worktree interface.
func NewMockWorktree ¶
func NewMockWorktree(ctrl *gomock.Controller) *MockWorktree
NewMockWorktree creates a new mock instance.
func (*MockWorktree) AddToStatus ¶
func (m *MockWorktree) AddToStatus(params interfaces.AddToStatusParams) error
AddToStatus mocks base method.
func (*MockWorktree) BuildPath ¶
func (m *MockWorktree) BuildPath(repoURL, remoteName, branch string) string
BuildPath mocks base method.
func (*MockWorktree) CheckoutBranch ¶
func (m *MockWorktree) CheckoutBranch(worktreePath, branch string) error
CheckoutBranch mocks base method.
func (*MockWorktree) CleanupDirectory ¶
func (m *MockWorktree) CleanupDirectory(worktreePath string) error
CleanupDirectory mocks base method.
func (*MockWorktree) Create ¶
func (m *MockWorktree) Create(params interfaces.CreateParams) error
Create mocks base method.
func (*MockWorktree) Delete ¶
func (m *MockWorktree) Delete(params interfaces.DeleteParams) error
Delete mocks base method.
func (*MockWorktree) EXPECT ¶
func (m *MockWorktree) EXPECT() *MockWorktreeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWorktree) EnsureBranchExists ¶
func (m *MockWorktree) EnsureBranchExists(repoPath, branch string) error
EnsureBranchExists mocks base method.
func (*MockWorktree) Exists ¶
func (m *MockWorktree) Exists(repoPath, branch string) (bool, error)
Exists mocks base method.
func (*MockWorktree) RemoveFromStatus ¶
func (m *MockWorktree) RemoveFromStatus(repoURL, branch string) error
RemoveFromStatus mocks base method.
func (*MockWorktree) SetLogger ¶
func (m *MockWorktree) SetLogger(arg0 logger.Logger)
SetLogger mocks base method.
func (*MockWorktree) ValidateCreation ¶
func (m *MockWorktree) ValidateCreation(params interfaces.ValidateCreationParams) error
ValidateCreation mocks base method.
func (*MockWorktree) ValidateDeletion ¶
func (m *MockWorktree) ValidateDeletion(params interfaces.ValidateDeletionParams) error
ValidateDeletion mocks base method.
type MockWorktreeMockRecorder ¶
type MockWorktreeMockRecorder struct {
// contains filtered or unexported fields
}
MockWorktreeMockRecorder is the mock recorder for MockWorktree.
func (*MockWorktreeMockRecorder) AddToStatus ¶
func (mr *MockWorktreeMockRecorder) AddToStatus(params any) *gomock.Call
AddToStatus indicates an expected call of AddToStatus.
func (*MockWorktreeMockRecorder) BuildPath ¶
func (mr *MockWorktreeMockRecorder) BuildPath(repoURL, remoteName, branch any) *gomock.Call
BuildPath indicates an expected call of BuildPath.
func (*MockWorktreeMockRecorder) CheckoutBranch ¶
func (mr *MockWorktreeMockRecorder) CheckoutBranch(worktreePath, branch any) *gomock.Call
CheckoutBranch indicates an expected call of CheckoutBranch.
func (*MockWorktreeMockRecorder) CleanupDirectory ¶
func (mr *MockWorktreeMockRecorder) CleanupDirectory(worktreePath any) *gomock.Call
CleanupDirectory indicates an expected call of CleanupDirectory.
func (*MockWorktreeMockRecorder) Create ¶
func (mr *MockWorktreeMockRecorder) Create(params any) *gomock.Call
Create indicates an expected call of Create.
func (*MockWorktreeMockRecorder) Delete ¶
func (mr *MockWorktreeMockRecorder) Delete(params any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockWorktreeMockRecorder) EnsureBranchExists ¶
func (mr *MockWorktreeMockRecorder) EnsureBranchExists(repoPath, branch any) *gomock.Call
EnsureBranchExists indicates an expected call of EnsureBranchExists.
func (*MockWorktreeMockRecorder) Exists ¶
func (mr *MockWorktreeMockRecorder) Exists(repoPath, branch any) *gomock.Call
Exists indicates an expected call of Exists.
func (*MockWorktreeMockRecorder) RemoveFromStatus ¶
func (mr *MockWorktreeMockRecorder) RemoveFromStatus(repoURL, branch any) *gomock.Call
RemoveFromStatus indicates an expected call of RemoveFromStatus.
func (*MockWorktreeMockRecorder) SetLogger ¶
func (mr *MockWorktreeMockRecorder) SetLogger(arg0 any) *gomock.Call
SetLogger indicates an expected call of SetLogger.
func (*MockWorktreeMockRecorder) ValidateCreation ¶
func (mr *MockWorktreeMockRecorder) ValidateCreation(params any) *gomock.Call
ValidateCreation indicates an expected call of ValidateCreation.
func (*MockWorktreeMockRecorder) ValidateDeletion ¶
func (mr *MockWorktreeMockRecorder) ValidateDeletion(params any) *gomock.Call
ValidateDeletion indicates an expected call of ValidateDeletion.