Documentation
¶
Overview ¶
Package git_mock is a generated GoMock package.
Index ¶
- type MockGitService
- func (m *MockGitService) AuthenticateWithUsernamePassword(ctx context.Context, username, password string) (git.GitService, error)
- func (m *MockGitService) Clone(ctx context.Context, remoteURL, localPath string, opts git.CloneOptions) error
- func (m *MockGitService) EXPECT() *MockGitServiceMockRecorder
- func (m *MockGitService) GetDefaultRemotes(ctx context.Context, localPath string) ([]string, error)
- func (m *MockGitService) GetRemotes(ctx context.Context, localPath, name string) ([]string, error)
- func (m *MockGitService) Init(ctx context.Context, remoteURL, localPath string, isBare bool, ...) error
- func (m *MockGitService) ListAllFiles(ctx context.Context, localPath string, filePatterns []string) iter.Seq2[string, error]
- func (m *MockGitService) ListExcludedFiles(ctx context.Context, localPath string, filePatterns []string) iter.Seq2[string, error]
- func (m *MockGitService) SetDefaultRemotes(ctx context.Context, localPath string, remotes []string) error
- func (m *MockGitService) SetRemotes(ctx context.Context, localPath, name string, remotes []string) error
- type MockGitServiceMockRecorder
- func (mr *MockGitServiceMockRecorder) AuthenticateWithUsernamePassword(ctx, username, password any) *gomock.Call
- func (mr *MockGitServiceMockRecorder) Clone(ctx, remoteURL, localPath, opts any) *gomock.Call
- func (mr *MockGitServiceMockRecorder) GetDefaultRemotes(ctx, localPath any) *gomock.Call
- func (mr *MockGitServiceMockRecorder) GetRemotes(ctx, localPath, name any) *gomock.Call
- func (mr *MockGitServiceMockRecorder) Init(ctx, remoteURL, localPath, isBare, opts any) *gomock.Call
- func (mr *MockGitServiceMockRecorder) ListAllFiles(ctx, localPath, filePatterns any) *gomock.Call
- func (mr *MockGitServiceMockRecorder) ListExcludedFiles(ctx, localPath, filePatterns any) *gomock.Call
- func (mr *MockGitServiceMockRecorder) SetDefaultRemotes(ctx, localPath, remotes any) *gomock.Call
- func (mr *MockGitServiceMockRecorder) SetRemotes(ctx, localPath, name, remotes any) *gomock.Call
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 ¶
func (m *MockGitService) EXPECT() *MockGitServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGitService) GetDefaultRemotes ¶
GetDefaultRemotes mocks base method.
func (*MockGitService) GetRemotes ¶
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.