git

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package git is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockGitClient

type MockGitClient struct {
	// contains filtered or unexported fields
}

MockGitClient is a mock of GitClient interface.

func NewMockGitClient

func NewMockGitClient(ctrl *gomock.Controller) *MockGitClient

NewMockGitClient creates a new mock instance.

func (*MockGitClient) Cleanup

func (m *MockGitClient) Cleanup(repo host.Repository) error

Cleanup mocks base method.

func (*MockGitClient) CommitChanges

func (m *MockGitClient) CommitChanges(msg string) error

CommitChanges mocks base method.

func (*MockGitClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGitClient) Execute

func (m *MockGitClient) Execute(arg ...string) (string, string, error)

Execute mocks base method.

func (*MockGitClient) HasLocalChanges

func (m *MockGitClient) HasLocalChanges() (bool, error)

HasLocalChanges mocks base method.

func (*MockGitClient) HasRemoteChanges

func (m *MockGitClient) HasRemoteChanges(branchName string) (bool, error)

HasRemoteChanges mocks base method.

func (*MockGitClient) Prepare

func (m *MockGitClient) Prepare(repo host.Repository, retry bool) (string, error)

Prepare mocks base method.

func (*MockGitClient) Push

func (m *MockGitClient) Push(branchName string, force bool) error

Push mocks base method.

func (*MockGitClient) UpdateTaskBranch

func (m *MockGitClient) UpdateTaskBranch(branchName string, forceRebase, detectForeignCommits bool, repo host.Repository) (bool, error)

UpdateTaskBranch mocks base method.

type MockGitClientMockRecorder

type MockGitClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockGitClientMockRecorder is the mock recorder for MockGitClient.

func (*MockGitClientMockRecorder) Cleanup

func (mr *MockGitClientMockRecorder) Cleanup(repo any) *gomock.Call

Cleanup indicates an expected call of Cleanup.

func (*MockGitClientMockRecorder) CommitChanges

func (mr *MockGitClientMockRecorder) CommitChanges(msg any) *gomock.Call

CommitChanges indicates an expected call of CommitChanges.

func (*MockGitClientMockRecorder) Execute

func (mr *MockGitClientMockRecorder) Execute(arg ...any) *gomock.Call

Execute indicates an expected call of Execute.

func (*MockGitClientMockRecorder) HasLocalChanges

func (mr *MockGitClientMockRecorder) HasLocalChanges() *gomock.Call

HasLocalChanges indicates an expected call of HasLocalChanges.

func (*MockGitClientMockRecorder) HasRemoteChanges

func (mr *MockGitClientMockRecorder) HasRemoteChanges(branchName any) *gomock.Call

HasRemoteChanges indicates an expected call of HasRemoteChanges.

func (*MockGitClientMockRecorder) Prepare

func (mr *MockGitClientMockRecorder) Prepare(repo, retry any) *gomock.Call

Prepare indicates an expected call of Prepare.

func (*MockGitClientMockRecorder) Push

func (mr *MockGitClientMockRecorder) Push(branchName, force any) *gomock.Call

Push indicates an expected call of Push.

func (*MockGitClientMockRecorder) UpdateTaskBranch

func (mr *MockGitClientMockRecorder) UpdateTaskBranch(branchName, forceRebase, detectForeignCommits, repo any) *gomock.Call

UpdateTaskBranch indicates an expected call of UpdateTaskBranch.

Jump to

Keyboard shortcuts

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