git

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: Apache-2.0 Imports: 5 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, 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 (_c *MockGit_CloneRepository_Call) Return(repository *git.Repository, err error) *MockGit_CloneRepository_Call

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 interface{}, url interface{}, branch interface{}, path interface{}) *MockGit_CloneRepository_Call

CloneRepository is a helper method to define mock.On call

  • fs
  • url
  • branch
  • path

Jump to

Keyboard shortcuts

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