mocks

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: GPL-3.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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

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.

Jump to

Keyboard shortcuts

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