Documentation
¶
Index ¶
- type Git
- type GitService
- type MockGit
- type MockGit_CloneRepository_Call
- func (_c *MockGit_CloneRepository_Call) Return(repository *git.Repository, err error) *MockGit_CloneRepository_Call
- func (_c *MockGit_CloneRepository_Call) Run(run func(fs *cs.FileSystem, url string, branch string, path string)) *MockGit_CloneRepository_Call
- func (_c *MockGit_CloneRepository_Call) RunAndReturn(...) *MockGit_CloneRepository_Call
- type MockGit_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
MockGit is an autogenerated mock type for the Git type
func NewMockGit ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.