git

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 5 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, branch string, path string) (*git.Repository, error)
}

type GitService

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

func NewGitService

func NewGitService(fs *cs.FileSystem) *GitService

func (*GitService) CloneRepository

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

type MockGit

type MockGit struct {
	mock.Mock
}

MockGit is an autogenerated mock type for the Git type

func NewMockGit

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

NewMockGit creates a new instance of MockGit. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockGit) CloneRepository

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

CloneRepository provides a mock function for the type MockGit

func (*MockGit) EXPECT

func (_m *MockGit) EXPECT() *MockGit_Expecter

type MockGit_CloneRepository_Call

type MockGit_CloneRepository_Call struct {
	*mock.Call
}

MockGit_CloneRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CloneRepository'

func (*MockGit_CloneRepository_Call) Return added in v0.11.0

func (*MockGit_CloneRepository_Call) Run added in v0.11.0

func (_c *MockGit_CloneRepository_Call) Run(run func(fs *cs.FileSystem, url string, branch string, path string)) *MockGit_CloneRepository_Call

func (*MockGit_CloneRepository_Call) RunAndReturn added in v0.11.0

func (_c *MockGit_CloneRepository_Call) RunAndReturn(run func(fs *cs.FileSystem, url string, branch string, path string) (*git.Repository, error)) *MockGit_CloneRepository_Call

type MockGit_Expecter

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

func (*MockGit_Expecter) CloneRepository

func (_e *MockGit_Expecter) CloneRepository(fs any, url any, branch any, path any) *MockGit_CloneRepository_Call

CloneRepository is a helper method to define mock.On call

  • fs *cs.FileSystem
  • url string
  • branch string
  • path string

Jump to

Keyboard shortcuts

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