mocks

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

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 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) Add

func (m *MockGit) Add(repoPath string, files ...string) error

Add mocks base method.

func (*MockGit) AddRemote

func (m *MockGit) AddRemote(repoPath, remoteName, remoteURL string) error

AddRemote mocks base method.

func (*MockGit) BranchExists

func (m *MockGit) BranchExists(repoPath, branch string) (bool, error)

BranchExists mocks base method.

func (*MockGit) BranchExistsOnRemote

func (m *MockGit) BranchExistsOnRemote(params git.BranchExistsOnRemoteParams) (bool, error)

BranchExistsOnRemote mocks base method.

func (*MockGit) CheckReferenceConflict

func (m *MockGit) CheckReferenceConflict(repoPath, branch string) error

CheckReferenceConflict mocks base method.

func (*MockGit) CheckoutBranch

func (m *MockGit) CheckoutBranch(worktreePath, branch string) error

CheckoutBranch mocks base method.

func (*MockGit) Clone

func (m *MockGit) Clone(params git.CloneParams) error

Clone mocks base method.

func (*MockGit) Commit

func (m *MockGit) Commit(repoPath, message string) error

Commit mocks base method.

func (*MockGit) ConfigGet

func (m *MockGit) ConfigGet(workDir, key string) (string, error)

ConfigGet mocks base method.

func (*MockGit) CreateBranch

func (m *MockGit) CreateBranch(repoPath, branch string) error

CreateBranch mocks base method.

func (*MockGit) CreateBranchFrom

func (m *MockGit) CreateBranchFrom(params git.CreateBranchFromParams) error

CreateBranchFrom mocks base method.

func (*MockGit) CreateWorktree

func (m *MockGit) CreateWorktree(repoPath, worktreePath, branch string) error

CreateWorktree mocks base method.

func (*MockGit) CreateWorktreeWithNoCheckout

func (m *MockGit) CreateWorktreeWithNoCheckout(repoPath, worktreePath, branch string) error

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

func (m *MockGit) FetchRemote(repoPath, remoteName string) error

FetchRemote mocks base method.

func (*MockGit) GetBranchRemote

func (m *MockGit) GetBranchRemote(repoPath, branch string) (string, error)

GetBranchRemote mocks base method.

func (*MockGit) GetCurrentBranch

func (m *MockGit) GetCurrentBranch(repoPath string) (string, error)

GetCurrentBranch mocks base method.

func (*MockGit) GetDefaultBranch

func (m *MockGit) GetDefaultBranch(remoteURL string) (string, error)

GetDefaultBranch mocks base method.

func (*MockGit) GetRemoteURL

func (m *MockGit) GetRemoteURL(repoPath, remoteName string) (string, error)

GetRemoteURL mocks base method.

func (*MockGit) GetRepositoryName

func (m *MockGit) GetRepositoryName(repoPath string) (string, error)

GetRepositoryName mocks base method.

func (*MockGit) GetWorktreePath

func (m *MockGit) GetWorktreePath(repoPath, branch string) (string, error)

GetWorktreePath mocks base method.

func (*MockGit) IsClean

func (m *MockGit) IsClean(repoPath string) (bool, error)

IsClean mocks base method.

func (*MockGit) RemoteExists

func (m *MockGit) RemoteExists(repoPath, remoteName string) (bool, error)

RemoteExists mocks base method.

func (*MockGit) RemoveWorktree

func (m *MockGit) RemoveWorktree(repoPath, worktreePath string, force bool) error

RemoveWorktree mocks base method.

func (*MockGit) SetUpstreamBranch

func (m *MockGit) SetUpstreamBranch(repoPath, remote, branch string) error

SetUpstreamBranch mocks base method.

func (*MockGit) Status

func (m *MockGit) Status(workDir string) (string, error)

Status mocks base method.

func (*MockGit) WorktreeExists

func (m *MockGit) WorktreeExists(repoPath, branch string) (bool, error)

WorktreeExists 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.

Jump to

Keyboard shortcuts

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