git

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git interface {
	CloneRepository(fs *cs.FileSystem, url string, path string) (*git.Repository, error)
}

func NewGitService

func NewGitService(fs *cs.FileSystem) Git

type GitService

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

func (*GitService) CloneRepository

func (g *GitService) CloneRepository(fs *cs.FileSystem, url string, path string) (*git.Repository, error)

type MockGit

type MockGit struct {
	mock.Mock
}

func NewMockGit

func NewMockGit(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockGit

NewMockGit creates a new mock Git service for testing purposes.

func (*MockGit) CloneRepository

func (_m *MockGit) CloneRepository(fs *cs.FileSystem, url string, path string) (*git.Repository, error)

func (*MockGit) EXPECT

func (_m *MockGit) EXPECT() *MockGit_Expecter

type MockGit_CloneRepository_Call

type MockGit_CloneRepository_Call struct {
	*mock.Call
}

type MockGit_Expecter

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

func (*MockGit_Expecter) CloneRepository

func (_e *MockGit_Expecter) CloneRepository(fs *cs.FileSystem, url string, path string) *MockGit_CloneRepository_Call

Jump to

Keyboard shortcuts

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