Documentation
¶
Overview ¶
Package git is a generated GoMock package.
Index ¶
- type MockGitClient
- func (m *MockGitClient) Cleanup(repo host.Repository) error
- func (m *MockGitClient) CommitChanges(msg string) error
- func (m *MockGitClient) EXPECT() *MockGitClientMockRecorder
- func (m *MockGitClient) Execute(arg ...string) (string, string, error)
- func (m *MockGitClient) HasLocalChanges() (bool, error)
- func (m *MockGitClient) HasRemoteChanges(branchName string) (bool, error)
- func (m *MockGitClient) Prepare(repo host.Repository, retry bool) (string, error)
- func (m *MockGitClient) Push(branchName string, force bool) error
- func (m *MockGitClient) UpdateTaskBranch(branchName string, forceRebase, detectForeignCommits bool, ...) (bool, error)
- type MockGitClientMockRecorder
- func (mr *MockGitClientMockRecorder) Cleanup(repo any) *gomock.Call
- func (mr *MockGitClientMockRecorder) CommitChanges(msg any) *gomock.Call
- func (mr *MockGitClientMockRecorder) Execute(arg ...any) *gomock.Call
- func (mr *MockGitClientMockRecorder) HasLocalChanges() *gomock.Call
- func (mr *MockGitClientMockRecorder) HasRemoteChanges(branchName any) *gomock.Call
- func (mr *MockGitClientMockRecorder) Prepare(repo, retry any) *gomock.Call
- func (mr *MockGitClientMockRecorder) Push(branchName, force any) *gomock.Call
- func (mr *MockGitClientMockRecorder) UpdateTaskBranch(branchName, forceRebase, detectForeignCommits, repo any) *gomock.Call
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 ¶
func (m *MockGitClient) EXPECT() *MockGitClientMockRecorder
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.