git

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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