git_mock

package
v4.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package git_mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockGitService

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

MockGitService is a mock of GitService interface.

func NewMockGitService

func NewMockGitService(ctrl *gomock.Controller) *MockGitService

NewMockGitService creates a new mock instance.

func (*MockGitService) AuthenticateWithUsernamePassword

func (m *MockGitService) AuthenticateWithUsernamePassword(ctx context.Context, username, password string) (git.GitService, error)

AuthenticateWithUsernamePassword mocks base method.

func (*MockGitService) Clone

func (m *MockGitService) Clone(ctx context.Context, remoteURL, localPath string, opts git.CloneOptions) error

Clone mocks base method.

func (*MockGitService) EXPECT

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

func (*MockGitService) GetDefaultRemotes

func (m *MockGitService) GetDefaultRemotes(ctx context.Context, localPath string) ([]string, error)

GetDefaultRemotes mocks base method.

func (*MockGitService) GetRemotes

func (m *MockGitService) GetRemotes(ctx context.Context, localPath, name string) ([]string, error)

GetRemotes mocks base method.

func (*MockGitService) Init

func (m *MockGitService) Init(ctx context.Context, remoteURL, localPath string, isBare bool, opts git.InitOptions) error

Init mocks base method.

func (*MockGitService) ListAllFiles

func (m *MockGitService) ListAllFiles(ctx context.Context, localPath string, filePatterns []string) iter.Seq2[string, error]

ListAllFiles mocks base method.

func (*MockGitService) ListExcludedFiles

func (m *MockGitService) ListExcludedFiles(ctx context.Context, localPath string, filePatterns []string) iter.Seq2[string, error]

ListExcludedFiles mocks base method.

func (*MockGitService) SetDefaultRemotes

func (m *MockGitService) SetDefaultRemotes(ctx context.Context, localPath string, remotes []string) error

SetDefaultRemotes mocks base method.

func (*MockGitService) SetRemotes

func (m *MockGitService) SetRemotes(ctx context.Context, localPath, name string, remotes []string) error

SetRemotes mocks base method.

type MockGitServiceMockRecorder

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

MockGitServiceMockRecorder is the mock recorder for MockGitService.

func (*MockGitServiceMockRecorder) AuthenticateWithUsernamePassword

func (mr *MockGitServiceMockRecorder) AuthenticateWithUsernamePassword(ctx, username, password any) *gomock.Call

AuthenticateWithUsernamePassword indicates an expected call of AuthenticateWithUsernamePassword.

func (*MockGitServiceMockRecorder) Clone

func (mr *MockGitServiceMockRecorder) Clone(ctx, remoteURL, localPath, opts any) *gomock.Call

Clone indicates an expected call of Clone.

func (*MockGitServiceMockRecorder) GetDefaultRemotes

func (mr *MockGitServiceMockRecorder) GetDefaultRemotes(ctx, localPath any) *gomock.Call

GetDefaultRemotes indicates an expected call of GetDefaultRemotes.

func (*MockGitServiceMockRecorder) GetRemotes

func (mr *MockGitServiceMockRecorder) GetRemotes(ctx, localPath, name any) *gomock.Call

GetRemotes indicates an expected call of GetRemotes.

func (*MockGitServiceMockRecorder) Init

func (mr *MockGitServiceMockRecorder) Init(ctx, remoteURL, localPath, isBare, opts any) *gomock.Call

Init indicates an expected call of Init.

func (*MockGitServiceMockRecorder) ListAllFiles

func (mr *MockGitServiceMockRecorder) ListAllFiles(ctx, localPath, filePatterns any) *gomock.Call

ListAllFiles indicates an expected call of ListAllFiles.

func (*MockGitServiceMockRecorder) ListExcludedFiles

func (mr *MockGitServiceMockRecorder) ListExcludedFiles(ctx, localPath, filePatterns any) *gomock.Call

ListExcludedFiles indicates an expected call of ListExcludedFiles.

func (*MockGitServiceMockRecorder) SetDefaultRemotes

func (mr *MockGitServiceMockRecorder) SetDefaultRemotes(ctx, localPath, remotes any) *gomock.Call

SetDefaultRemotes indicates an expected call of SetDefaultRemotes.

func (*MockGitServiceMockRecorder) SetRemotes

func (mr *MockGitServiceMockRecorder) SetRemotes(ctx, localPath, name, remotes any) *gomock.Call

SetRemotes indicates an expected call of SetRemotes.

Jump to

Keyboard shortcuts

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