Documentation
¶
Index ¶
- type MockRepoLike
- func (_mock *MockRepoLike) AddToFS(fs afero.Fs, gitFile *object.File, fullPath string) error
- func (_mock *MockRepoLike) Checkout(referenceName plumbing.ReferenceName) error
- func (_mock *MockRepoLike) CheckoutCommit(hash plumbing.Hash) error
- func (_mock *MockRepoLike) Clone(s string, s1 string, cloneOptions ...repo.CloneOption) (*git.Repository, *git.Worktree, error)
- func (_mock *MockRepoLike) Commit(s string, commitOptions *git.CommitOptions) (plumbing.Hash, error)
- func (_mock *MockRepoLike) CreateBranch(s string) error
- func (_mock *MockRepoLike) DirectoryExists(s string) (bool, error)
- func (_m *MockRepoLike) EXPECT() *MockRepoLike_Expecter
- func (_mock *MockRepoLike) FileExists(s string) (bool, error)
- func (_mock *MockRepoLike) GetAuth() transport.AuthMethod
- func (_mock *MockRepoLike) GetFile(s string) (*object.File, error)
- func (_mock *MockRepoLike) GetRepo() *git.Repository
- func (_mock *MockRepoLike) GetTree() *git.Worktree
- func (_mock *MockRepoLike) Open(v repo.RepoType, s string, s1 string, cloneOptions ...repo.CloneOption) (*git.Repository, *git.Worktree, error)
- func (_mock *MockRepoLike) OpenInMemory(s string, s1 string, cloneOptions ...repo.CloneOption) (*git.Repository, *git.Worktree, error)
- func (_mock *MockRepoLike) OpenLocal(s string, s1 string) (*git.Repository, *git.Worktree, error)
- func (_mock *MockRepoLike) Push(pushOptions *git.PushOptions) error
- func (_mock *MockRepoLike) SetBasicAuth(s string, s1 string)
- func (_mock *MockRepoLike) SetKey(publicKeys *ssh.PublicKeys)
- func (_mock *MockRepoLike) SetRepo(repository *git.Repository)
- func (_mock *MockRepoLike) SetSource(n int)
- func (_mock *MockRepoLike) SetTree(worktree *git.Worktree)
- func (_mock *MockRepoLike) SourceIs(n int) bool
- func (_mock *MockRepoLike) WalkTree(fn func(*object.File) error) error
- type MockRepoLike_AddToFS_Call
- func (_c *MockRepoLike_AddToFS_Call) Return(err error) *MockRepoLike_AddToFS_Call
- func (_c *MockRepoLike_AddToFS_Call) Run(run func(fs afero.Fs, gitFile *object.File, fullPath string)) *MockRepoLike_AddToFS_Call
- func (_c *MockRepoLike_AddToFS_Call) RunAndReturn(run func(fs afero.Fs, gitFile *object.File, fullPath string) error) *MockRepoLike_AddToFS_Call
- type MockRepoLike_CheckoutCommit_Call
- func (_c *MockRepoLike_CheckoutCommit_Call) Return(err error) *MockRepoLike_CheckoutCommit_Call
- func (_c *MockRepoLike_CheckoutCommit_Call) Run(run func(hash plumbing.Hash)) *MockRepoLike_CheckoutCommit_Call
- func (_c *MockRepoLike_CheckoutCommit_Call) RunAndReturn(run func(hash plumbing.Hash) error) *MockRepoLike_CheckoutCommit_Call
- type MockRepoLike_Checkout_Call
- func (_c *MockRepoLike_Checkout_Call) Return(err error) *MockRepoLike_Checkout_Call
- func (_c *MockRepoLike_Checkout_Call) Run(run func(referenceName plumbing.ReferenceName)) *MockRepoLike_Checkout_Call
- func (_c *MockRepoLike_Checkout_Call) RunAndReturn(run func(referenceName plumbing.ReferenceName) error) *MockRepoLike_Checkout_Call
- type MockRepoLike_Clone_Call
- func (_c *MockRepoLike_Clone_Call) Return(repository *git.Repository, worktree *git.Worktree, err error) *MockRepoLike_Clone_Call
- func (_c *MockRepoLike_Clone_Call) Run(run func(s string, s1 string, cloneOptions ...repo.CloneOption)) *MockRepoLike_Clone_Call
- func (_c *MockRepoLike_Clone_Call) RunAndReturn(...) *MockRepoLike_Clone_Call
- type MockRepoLike_Commit_Call
- func (_c *MockRepoLike_Commit_Call) Return(hash plumbing.Hash, err error) *MockRepoLike_Commit_Call
- func (_c *MockRepoLike_Commit_Call) Run(run func(s string, commitOptions *git.CommitOptions)) *MockRepoLike_Commit_Call
- func (_c *MockRepoLike_Commit_Call) RunAndReturn(run func(s string, commitOptions *git.CommitOptions) (plumbing.Hash, error)) *MockRepoLike_Commit_Call
- type MockRepoLike_CreateBranch_Call
- func (_c *MockRepoLike_CreateBranch_Call) Return(err error) *MockRepoLike_CreateBranch_Call
- func (_c *MockRepoLike_CreateBranch_Call) Run(run func(s string)) *MockRepoLike_CreateBranch_Call
- func (_c *MockRepoLike_CreateBranch_Call) RunAndReturn(run func(s string) error) *MockRepoLike_CreateBranch_Call
- type MockRepoLike_DirectoryExists_Call
- func (_c *MockRepoLike_DirectoryExists_Call) Return(b bool, err error) *MockRepoLike_DirectoryExists_Call
- func (_c *MockRepoLike_DirectoryExists_Call) Run(run func(s string)) *MockRepoLike_DirectoryExists_Call
- func (_c *MockRepoLike_DirectoryExists_Call) RunAndReturn(run func(s string) (bool, error)) *MockRepoLike_DirectoryExists_Call
- type MockRepoLike_Expecter
- func (_e *MockRepoLike_Expecter) AddToFS(fs interface{}, gitFile interface{}, fullPath interface{}) *MockRepoLike_AddToFS_Call
- func (_e *MockRepoLike_Expecter) Checkout(referenceName interface{}) *MockRepoLike_Checkout_Call
- func (_e *MockRepoLike_Expecter) CheckoutCommit(hash interface{}) *MockRepoLike_CheckoutCommit_Call
- func (_e *MockRepoLike_Expecter) Clone(s interface{}, s1 interface{}, cloneOptions ...interface{}) *MockRepoLike_Clone_Call
- func (_e *MockRepoLike_Expecter) Commit(s interface{}, commitOptions interface{}) *MockRepoLike_Commit_Call
- func (_e *MockRepoLike_Expecter) CreateBranch(s interface{}) *MockRepoLike_CreateBranch_Call
- func (_e *MockRepoLike_Expecter) DirectoryExists(s interface{}) *MockRepoLike_DirectoryExists_Call
- func (_e *MockRepoLike_Expecter) FileExists(s interface{}) *MockRepoLike_FileExists_Call
- func (_e *MockRepoLike_Expecter) GetAuth() *MockRepoLike_GetAuth_Call
- func (_e *MockRepoLike_Expecter) GetFile(s interface{}) *MockRepoLike_GetFile_Call
- func (_e *MockRepoLike_Expecter) GetRepo() *MockRepoLike_GetRepo_Call
- func (_e *MockRepoLike_Expecter) GetTree() *MockRepoLike_GetTree_Call
- func (_e *MockRepoLike_Expecter) Open(v interface{}, s interface{}, s1 interface{}, cloneOptions ...interface{}) *MockRepoLike_Open_Call
- func (_e *MockRepoLike_Expecter) OpenInMemory(s interface{}, s1 interface{}, cloneOptions ...interface{}) *MockRepoLike_OpenInMemory_Call
- func (_e *MockRepoLike_Expecter) OpenLocal(s interface{}, s1 interface{}) *MockRepoLike_OpenLocal_Call
- func (_e *MockRepoLike_Expecter) Push(pushOptions interface{}) *MockRepoLike_Push_Call
- func (_e *MockRepoLike_Expecter) SetBasicAuth(s interface{}, s1 interface{}) *MockRepoLike_SetBasicAuth_Call
- func (_e *MockRepoLike_Expecter) SetKey(publicKeys interface{}) *MockRepoLike_SetKey_Call
- func (_e *MockRepoLike_Expecter) SetRepo(repository interface{}) *MockRepoLike_SetRepo_Call
- func (_e *MockRepoLike_Expecter) SetSource(n interface{}) *MockRepoLike_SetSource_Call
- func (_e *MockRepoLike_Expecter) SetTree(worktree interface{}) *MockRepoLike_SetTree_Call
- func (_e *MockRepoLike_Expecter) SourceIs(n interface{}) *MockRepoLike_SourceIs_Call
- func (_e *MockRepoLike_Expecter) WalkTree(fn interface{}) *MockRepoLike_WalkTree_Call
- type MockRepoLike_FileExists_Call
- func (_c *MockRepoLike_FileExists_Call) Return(b bool, err error) *MockRepoLike_FileExists_Call
- func (_c *MockRepoLike_FileExists_Call) Run(run func(s string)) *MockRepoLike_FileExists_Call
- func (_c *MockRepoLike_FileExists_Call) RunAndReturn(run func(s string) (bool, error)) *MockRepoLike_FileExists_Call
- type MockRepoLike_GetAuth_Call
- type MockRepoLike_GetFile_Call
- func (_c *MockRepoLike_GetFile_Call) Return(file *object.File, err error) *MockRepoLike_GetFile_Call
- func (_c *MockRepoLike_GetFile_Call) Run(run func(s string)) *MockRepoLike_GetFile_Call
- func (_c *MockRepoLike_GetFile_Call) RunAndReturn(run func(s string) (*object.File, error)) *MockRepoLike_GetFile_Call
- type MockRepoLike_GetRepo_Call
- type MockRepoLike_GetTree_Call
- type MockRepoLike_OpenInMemory_Call
- func (_c *MockRepoLike_OpenInMemory_Call) Return(repository *git.Repository, worktree *git.Worktree, err error) *MockRepoLike_OpenInMemory_Call
- func (_c *MockRepoLike_OpenInMemory_Call) Run(run func(s string, s1 string, cloneOptions ...repo.CloneOption)) *MockRepoLike_OpenInMemory_Call
- func (_c *MockRepoLike_OpenInMemory_Call) RunAndReturn(...) *MockRepoLike_OpenInMemory_Call
- type MockRepoLike_OpenLocal_Call
- func (_c *MockRepoLike_OpenLocal_Call) Return(repository *git.Repository, worktree *git.Worktree, err error) *MockRepoLike_OpenLocal_Call
- func (_c *MockRepoLike_OpenLocal_Call) Run(run func(s string, s1 string)) *MockRepoLike_OpenLocal_Call
- func (_c *MockRepoLike_OpenLocal_Call) RunAndReturn(run func(s string, s1 string) (*git.Repository, *git.Worktree, error)) *MockRepoLike_OpenLocal_Call
- type MockRepoLike_Open_Call
- type MockRepoLike_Push_Call
- type MockRepoLike_SetBasicAuth_Call
- func (_c *MockRepoLike_SetBasicAuth_Call) Return() *MockRepoLike_SetBasicAuth_Call
- func (_c *MockRepoLike_SetBasicAuth_Call) Run(run func(s string, s1 string)) *MockRepoLike_SetBasicAuth_Call
- func (_c *MockRepoLike_SetBasicAuth_Call) RunAndReturn(run func(s string, s1 string)) *MockRepoLike_SetBasicAuth_Call
- type MockRepoLike_SetKey_Call
- type MockRepoLike_SetRepo_Call
- type MockRepoLike_SetSource_Call
- type MockRepoLike_SetTree_Call
- type MockRepoLike_SourceIs_Call
- type MockRepoLike_WalkTree_Call
- func (_c *MockRepoLike_WalkTree_Call) Return(err error) *MockRepoLike_WalkTree_Call
- func (_c *MockRepoLike_WalkTree_Call) Run(run func(fn func(*object.File) error)) *MockRepoLike_WalkTree_Call
- func (_c *MockRepoLike_WalkTree_Call) RunAndReturn(run func(fn func(*object.File) error) error) *MockRepoLike_WalkTree_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepoLike ¶
MockRepoLike is an autogenerated mock type for the RepoLike type
func NewMockRepoLike ¶
func NewMockRepoLike(t interface {
mock.TestingT
Cleanup(func())
}) *MockRepoLike
NewMockRepoLike creates a new instance of MockRepoLike. 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 (*MockRepoLike) Checkout ¶
func (_mock *MockRepoLike) Checkout(referenceName plumbing.ReferenceName) error
Checkout provides a mock function for the type MockRepoLike
func (*MockRepoLike) CheckoutCommit ¶
func (_mock *MockRepoLike) CheckoutCommit(hash plumbing.Hash) error
CheckoutCommit provides a mock function for the type MockRepoLike
func (*MockRepoLike) Clone ¶
func (_mock *MockRepoLike) Clone(s string, s1 string, cloneOptions ...repo.CloneOption) (*git.Repository, *git.Worktree, error)
Clone provides a mock function for the type MockRepoLike
func (*MockRepoLike) Commit ¶
func (_mock *MockRepoLike) Commit(s string, commitOptions *git.CommitOptions) (plumbing.Hash, error)
Commit provides a mock function for the type MockRepoLike
func (*MockRepoLike) CreateBranch ¶
func (_mock *MockRepoLike) CreateBranch(s string) error
CreateBranch provides a mock function for the type MockRepoLike
func (*MockRepoLike) DirectoryExists ¶
func (_mock *MockRepoLike) DirectoryExists(s string) (bool, error)
DirectoryExists provides a mock function for the type MockRepoLike
func (*MockRepoLike) EXPECT ¶
func (_m *MockRepoLike) EXPECT() *MockRepoLike_Expecter
func (*MockRepoLike) FileExists ¶
func (_mock *MockRepoLike) FileExists(s string) (bool, error)
FileExists provides a mock function for the type MockRepoLike
func (*MockRepoLike) GetAuth ¶
func (_mock *MockRepoLike) GetAuth() transport.AuthMethod
GetAuth provides a mock function for the type MockRepoLike
func (*MockRepoLike) GetFile ¶
func (_mock *MockRepoLike) GetFile(s string) (*object.File, error)
GetFile provides a mock function for the type MockRepoLike
func (*MockRepoLike) GetRepo ¶
func (_mock *MockRepoLike) GetRepo() *git.Repository
GetRepo provides a mock function for the type MockRepoLike
func (*MockRepoLike) GetTree ¶
func (_mock *MockRepoLike) GetTree() *git.Worktree
GetTree provides a mock function for the type MockRepoLike
func (*MockRepoLike) Open ¶
func (_mock *MockRepoLike) Open(v repo.RepoType, s string, s1 string, cloneOptions ...repo.CloneOption) (*git.Repository, *git.Worktree, error)
Open provides a mock function for the type MockRepoLike
func (*MockRepoLike) OpenInMemory ¶
func (_mock *MockRepoLike) OpenInMemory(s string, s1 string, cloneOptions ...repo.CloneOption) (*git.Repository, *git.Worktree, error)
OpenInMemory provides a mock function for the type MockRepoLike
func (*MockRepoLike) OpenLocal ¶
func (_mock *MockRepoLike) OpenLocal(s string, s1 string) (*git.Repository, *git.Worktree, error)
OpenLocal provides a mock function for the type MockRepoLike
func (*MockRepoLike) Push ¶
func (_mock *MockRepoLike) Push(pushOptions *git.PushOptions) error
Push provides a mock function for the type MockRepoLike
func (*MockRepoLike) SetBasicAuth ¶
func (_mock *MockRepoLike) SetBasicAuth(s string, s1 string)
SetBasicAuth provides a mock function for the type MockRepoLike
func (*MockRepoLike) SetKey ¶
func (_mock *MockRepoLike) SetKey(publicKeys *ssh.PublicKeys)
SetKey provides a mock function for the type MockRepoLike
func (*MockRepoLike) SetRepo ¶
func (_mock *MockRepoLike) SetRepo(repository *git.Repository)
SetRepo provides a mock function for the type MockRepoLike
func (*MockRepoLike) SetSource ¶
func (_mock *MockRepoLike) SetSource(n int)
SetSource provides a mock function for the type MockRepoLike
func (*MockRepoLike) SetTree ¶
func (_mock *MockRepoLike) SetTree(worktree *git.Worktree)
SetTree provides a mock function for the type MockRepoLike
func (*MockRepoLike) SourceIs ¶
func (_mock *MockRepoLike) SourceIs(n int) bool
SourceIs provides a mock function for the type MockRepoLike
type MockRepoLike_AddToFS_Call ¶
MockRepoLike_AddToFS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddToFS'
func (*MockRepoLike_AddToFS_Call) Return ¶
func (_c *MockRepoLike_AddToFS_Call) Return(err error) *MockRepoLike_AddToFS_Call
func (*MockRepoLike_AddToFS_Call) Run ¶
func (_c *MockRepoLike_AddToFS_Call) Run(run func(fs afero.Fs, gitFile *object.File, fullPath string)) *MockRepoLike_AddToFS_Call
func (*MockRepoLike_AddToFS_Call) RunAndReturn ¶
func (_c *MockRepoLike_AddToFS_Call) RunAndReturn(run func(fs afero.Fs, gitFile *object.File, fullPath string) error) *MockRepoLike_AddToFS_Call
type MockRepoLike_CheckoutCommit_Call ¶
MockRepoLike_CheckoutCommit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckoutCommit'
func (*MockRepoLike_CheckoutCommit_Call) Return ¶
func (_c *MockRepoLike_CheckoutCommit_Call) Return(err error) *MockRepoLike_CheckoutCommit_Call
func (*MockRepoLike_CheckoutCommit_Call) Run ¶
func (_c *MockRepoLike_CheckoutCommit_Call) Run(run func(hash plumbing.Hash)) *MockRepoLike_CheckoutCommit_Call
func (*MockRepoLike_CheckoutCommit_Call) RunAndReturn ¶
func (_c *MockRepoLike_CheckoutCommit_Call) RunAndReturn(run func(hash plumbing.Hash) error) *MockRepoLike_CheckoutCommit_Call
type MockRepoLike_Checkout_Call ¶
MockRepoLike_Checkout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Checkout'
func (*MockRepoLike_Checkout_Call) Return ¶
func (_c *MockRepoLike_Checkout_Call) Return(err error) *MockRepoLike_Checkout_Call
func (*MockRepoLike_Checkout_Call) Run ¶
func (_c *MockRepoLike_Checkout_Call) Run(run func(referenceName plumbing.ReferenceName)) *MockRepoLike_Checkout_Call
func (*MockRepoLike_Checkout_Call) RunAndReturn ¶
func (_c *MockRepoLike_Checkout_Call) RunAndReturn(run func(referenceName plumbing.ReferenceName) error) *MockRepoLike_Checkout_Call
type MockRepoLike_Clone_Call ¶
MockRepoLike_Clone_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clone'
func (*MockRepoLike_Clone_Call) Return ¶
func (_c *MockRepoLike_Clone_Call) Return(repository *git.Repository, worktree *git.Worktree, err error) *MockRepoLike_Clone_Call
func (*MockRepoLike_Clone_Call) Run ¶
func (_c *MockRepoLike_Clone_Call) Run(run func(s string, s1 string, cloneOptions ...repo.CloneOption)) *MockRepoLike_Clone_Call
func (*MockRepoLike_Clone_Call) RunAndReturn ¶
func (_c *MockRepoLike_Clone_Call) RunAndReturn(run func(s string, s1 string, cloneOptions ...repo.CloneOption) (*git.Repository, *git.Worktree, error)) *MockRepoLike_Clone_Call
type MockRepoLike_Commit_Call ¶
MockRepoLike_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*MockRepoLike_Commit_Call) Return ¶
func (_c *MockRepoLike_Commit_Call) Return(hash plumbing.Hash, err error) *MockRepoLike_Commit_Call
func (*MockRepoLike_Commit_Call) Run ¶
func (_c *MockRepoLike_Commit_Call) Run(run func(s string, commitOptions *git.CommitOptions)) *MockRepoLike_Commit_Call
func (*MockRepoLike_Commit_Call) RunAndReturn ¶
func (_c *MockRepoLike_Commit_Call) RunAndReturn(run func(s string, commitOptions *git.CommitOptions) (plumbing.Hash, error)) *MockRepoLike_Commit_Call
type MockRepoLike_CreateBranch_Call ¶
MockRepoLike_CreateBranch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBranch'
func (*MockRepoLike_CreateBranch_Call) Return ¶
func (_c *MockRepoLike_CreateBranch_Call) Return(err error) *MockRepoLike_CreateBranch_Call
func (*MockRepoLike_CreateBranch_Call) Run ¶
func (_c *MockRepoLike_CreateBranch_Call) Run(run func(s string)) *MockRepoLike_CreateBranch_Call
func (*MockRepoLike_CreateBranch_Call) RunAndReturn ¶
func (_c *MockRepoLike_CreateBranch_Call) RunAndReturn(run func(s string) error) *MockRepoLike_CreateBranch_Call
type MockRepoLike_DirectoryExists_Call ¶
MockRepoLike_DirectoryExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DirectoryExists'
func (*MockRepoLike_DirectoryExists_Call) Return ¶
func (_c *MockRepoLike_DirectoryExists_Call) Return(b bool, err error) *MockRepoLike_DirectoryExists_Call
func (*MockRepoLike_DirectoryExists_Call) Run ¶
func (_c *MockRepoLike_DirectoryExists_Call) Run(run func(s string)) *MockRepoLike_DirectoryExists_Call
func (*MockRepoLike_DirectoryExists_Call) RunAndReturn ¶
func (_c *MockRepoLike_DirectoryExists_Call) RunAndReturn(run func(s string) (bool, error)) *MockRepoLike_DirectoryExists_Call
type MockRepoLike_Expecter ¶
type MockRepoLike_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRepoLike_Expecter) AddToFS ¶
func (_e *MockRepoLike_Expecter) AddToFS(fs interface{}, gitFile interface{}, fullPath interface{}) *MockRepoLike_AddToFS_Call
AddToFS is a helper method to define mock.On call
- fs afero.Fs
- gitFile *object.File
- fullPath string
func (*MockRepoLike_Expecter) Checkout ¶
func (_e *MockRepoLike_Expecter) Checkout(referenceName interface{}) *MockRepoLike_Checkout_Call
Checkout is a helper method to define mock.On call
- referenceName plumbing.ReferenceName
func (*MockRepoLike_Expecter) CheckoutCommit ¶
func (_e *MockRepoLike_Expecter) CheckoutCommit(hash interface{}) *MockRepoLike_CheckoutCommit_Call
CheckoutCommit is a helper method to define mock.On call
- hash plumbing.Hash
func (*MockRepoLike_Expecter) Clone ¶
func (_e *MockRepoLike_Expecter) Clone(s interface{}, s1 interface{}, cloneOptions ...interface{}) *MockRepoLike_Clone_Call
Clone is a helper method to define mock.On call
- s string
- s1 string
- cloneOptions ...repo.CloneOption
func (*MockRepoLike_Expecter) Commit ¶
func (_e *MockRepoLike_Expecter) Commit(s interface{}, commitOptions interface{}) *MockRepoLike_Commit_Call
Commit is a helper method to define mock.On call
- s string
- commitOptions *git.CommitOptions
func (*MockRepoLike_Expecter) CreateBranch ¶
func (_e *MockRepoLike_Expecter) CreateBranch(s interface{}) *MockRepoLike_CreateBranch_Call
CreateBranch is a helper method to define mock.On call
- s string
func (*MockRepoLike_Expecter) DirectoryExists ¶
func (_e *MockRepoLike_Expecter) DirectoryExists(s interface{}) *MockRepoLike_DirectoryExists_Call
DirectoryExists is a helper method to define mock.On call
- s string
func (*MockRepoLike_Expecter) FileExists ¶
func (_e *MockRepoLike_Expecter) FileExists(s interface{}) *MockRepoLike_FileExists_Call
FileExists is a helper method to define mock.On call
- s string
func (*MockRepoLike_Expecter) GetAuth ¶
func (_e *MockRepoLike_Expecter) GetAuth() *MockRepoLike_GetAuth_Call
GetAuth is a helper method to define mock.On call
func (*MockRepoLike_Expecter) GetFile ¶
func (_e *MockRepoLike_Expecter) GetFile(s interface{}) *MockRepoLike_GetFile_Call
GetFile is a helper method to define mock.On call
- s string
func (*MockRepoLike_Expecter) GetRepo ¶
func (_e *MockRepoLike_Expecter) GetRepo() *MockRepoLike_GetRepo_Call
GetRepo is a helper method to define mock.On call
func (*MockRepoLike_Expecter) GetTree ¶
func (_e *MockRepoLike_Expecter) GetTree() *MockRepoLike_GetTree_Call
GetTree is a helper method to define mock.On call
func (*MockRepoLike_Expecter) Open ¶
func (_e *MockRepoLike_Expecter) Open(v interface{}, s interface{}, s1 interface{}, cloneOptions ...interface{}) *MockRepoLike_Open_Call
Open is a helper method to define mock.On call
- v repo.RepoType
- s string
- s1 string
- cloneOptions ...repo.CloneOption
func (*MockRepoLike_Expecter) OpenInMemory ¶
func (_e *MockRepoLike_Expecter) OpenInMemory(s interface{}, s1 interface{}, cloneOptions ...interface{}) *MockRepoLike_OpenInMemory_Call
OpenInMemory is a helper method to define mock.On call
- s string
- s1 string
- cloneOptions ...repo.CloneOption
func (*MockRepoLike_Expecter) OpenLocal ¶
func (_e *MockRepoLike_Expecter) OpenLocal(s interface{}, s1 interface{}) *MockRepoLike_OpenLocal_Call
OpenLocal is a helper method to define mock.On call
- s string
- s1 string
func (*MockRepoLike_Expecter) Push ¶
func (_e *MockRepoLike_Expecter) Push(pushOptions interface{}) *MockRepoLike_Push_Call
Push is a helper method to define mock.On call
- pushOptions *git.PushOptions
func (*MockRepoLike_Expecter) SetBasicAuth ¶
func (_e *MockRepoLike_Expecter) SetBasicAuth(s interface{}, s1 interface{}) *MockRepoLike_SetBasicAuth_Call
SetBasicAuth is a helper method to define mock.On call
- s string
- s1 string
func (*MockRepoLike_Expecter) SetKey ¶
func (_e *MockRepoLike_Expecter) SetKey(publicKeys interface{}) *MockRepoLike_SetKey_Call
SetKey is a helper method to define mock.On call
- publicKeys *ssh.PublicKeys
func (*MockRepoLike_Expecter) SetRepo ¶
func (_e *MockRepoLike_Expecter) SetRepo(repository interface{}) *MockRepoLike_SetRepo_Call
SetRepo is a helper method to define mock.On call
- repository *git.Repository
func (*MockRepoLike_Expecter) SetSource ¶
func (_e *MockRepoLike_Expecter) SetSource(n interface{}) *MockRepoLike_SetSource_Call
SetSource is a helper method to define mock.On call
- n int
func (*MockRepoLike_Expecter) SetTree ¶
func (_e *MockRepoLike_Expecter) SetTree(worktree interface{}) *MockRepoLike_SetTree_Call
SetTree is a helper method to define mock.On call
- worktree *git.Worktree
func (*MockRepoLike_Expecter) SourceIs ¶
func (_e *MockRepoLike_Expecter) SourceIs(n interface{}) *MockRepoLike_SourceIs_Call
SourceIs is a helper method to define mock.On call
- n int
func (*MockRepoLike_Expecter) WalkTree ¶
func (_e *MockRepoLike_Expecter) WalkTree(fn interface{}) *MockRepoLike_WalkTree_Call
WalkTree is a helper method to define mock.On call
- fn func(*object.File) error
type MockRepoLike_FileExists_Call ¶
MockRepoLike_FileExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FileExists'
func (*MockRepoLike_FileExists_Call) Return ¶
func (_c *MockRepoLike_FileExists_Call) Return(b bool, err error) *MockRepoLike_FileExists_Call
func (*MockRepoLike_FileExists_Call) Run ¶
func (_c *MockRepoLike_FileExists_Call) Run(run func(s string)) *MockRepoLike_FileExists_Call
func (*MockRepoLike_FileExists_Call) RunAndReturn ¶
func (_c *MockRepoLike_FileExists_Call) RunAndReturn(run func(s string) (bool, error)) *MockRepoLike_FileExists_Call
type MockRepoLike_GetAuth_Call ¶
MockRepoLike_GetAuth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAuth'
func (*MockRepoLike_GetAuth_Call) Return ¶
func (_c *MockRepoLike_GetAuth_Call) Return(authMethod transport.AuthMethod) *MockRepoLike_GetAuth_Call
func (*MockRepoLike_GetAuth_Call) Run ¶
func (_c *MockRepoLike_GetAuth_Call) Run(run func()) *MockRepoLike_GetAuth_Call
func (*MockRepoLike_GetAuth_Call) RunAndReturn ¶
func (_c *MockRepoLike_GetAuth_Call) RunAndReturn(run func() transport.AuthMethod) *MockRepoLike_GetAuth_Call
type MockRepoLike_GetFile_Call ¶
MockRepoLike_GetFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFile'
func (*MockRepoLike_GetFile_Call) Return ¶
func (_c *MockRepoLike_GetFile_Call) Return(file *object.File, err error) *MockRepoLike_GetFile_Call
func (*MockRepoLike_GetFile_Call) Run ¶
func (_c *MockRepoLike_GetFile_Call) Run(run func(s string)) *MockRepoLike_GetFile_Call
func (*MockRepoLike_GetFile_Call) RunAndReturn ¶
func (_c *MockRepoLike_GetFile_Call) RunAndReturn(run func(s string) (*object.File, error)) *MockRepoLike_GetFile_Call
type MockRepoLike_GetRepo_Call ¶
MockRepoLike_GetRepo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRepo'
func (*MockRepoLike_GetRepo_Call) Return ¶
func (_c *MockRepoLike_GetRepo_Call) Return(repository *git.Repository) *MockRepoLike_GetRepo_Call
func (*MockRepoLike_GetRepo_Call) Run ¶
func (_c *MockRepoLike_GetRepo_Call) Run(run func()) *MockRepoLike_GetRepo_Call
func (*MockRepoLike_GetRepo_Call) RunAndReturn ¶
func (_c *MockRepoLike_GetRepo_Call) RunAndReturn(run func() *git.Repository) *MockRepoLike_GetRepo_Call
type MockRepoLike_GetTree_Call ¶
MockRepoLike_GetTree_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTree'
func (*MockRepoLike_GetTree_Call) Return ¶
func (_c *MockRepoLike_GetTree_Call) Return(worktree *git.Worktree) *MockRepoLike_GetTree_Call
func (*MockRepoLike_GetTree_Call) Run ¶
func (_c *MockRepoLike_GetTree_Call) Run(run func()) *MockRepoLike_GetTree_Call
func (*MockRepoLike_GetTree_Call) RunAndReturn ¶
func (_c *MockRepoLike_GetTree_Call) RunAndReturn(run func() *git.Worktree) *MockRepoLike_GetTree_Call
type MockRepoLike_OpenInMemory_Call ¶
MockRepoLike_OpenInMemory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OpenInMemory'
func (*MockRepoLike_OpenInMemory_Call) Return ¶
func (_c *MockRepoLike_OpenInMemory_Call) Return(repository *git.Repository, worktree *git.Worktree, err error) *MockRepoLike_OpenInMemory_Call
func (*MockRepoLike_OpenInMemory_Call) Run ¶
func (_c *MockRepoLike_OpenInMemory_Call) Run(run func(s string, s1 string, cloneOptions ...repo.CloneOption)) *MockRepoLike_OpenInMemory_Call
func (*MockRepoLike_OpenInMemory_Call) RunAndReturn ¶
func (_c *MockRepoLike_OpenInMemory_Call) RunAndReturn(run func(s string, s1 string, cloneOptions ...repo.CloneOption) (*git.Repository, *git.Worktree, error)) *MockRepoLike_OpenInMemory_Call
type MockRepoLike_OpenLocal_Call ¶
MockRepoLike_OpenLocal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OpenLocal'
func (*MockRepoLike_OpenLocal_Call) Return ¶
func (_c *MockRepoLike_OpenLocal_Call) Return(repository *git.Repository, worktree *git.Worktree, err error) *MockRepoLike_OpenLocal_Call
func (*MockRepoLike_OpenLocal_Call) Run ¶
func (_c *MockRepoLike_OpenLocal_Call) Run(run func(s string, s1 string)) *MockRepoLike_OpenLocal_Call
func (*MockRepoLike_OpenLocal_Call) RunAndReturn ¶
func (_c *MockRepoLike_OpenLocal_Call) RunAndReturn(run func(s string, s1 string) (*git.Repository, *git.Worktree, error)) *MockRepoLike_OpenLocal_Call
type MockRepoLike_Open_Call ¶
MockRepoLike_Open_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Open'
func (*MockRepoLike_Open_Call) Return ¶
func (_c *MockRepoLike_Open_Call) Return(repository *git.Repository, worktree *git.Worktree, err error) *MockRepoLike_Open_Call
func (*MockRepoLike_Open_Call) Run ¶
func (_c *MockRepoLike_Open_Call) Run(run func(v repo.RepoType, s string, s1 string, cloneOptions ...repo.CloneOption)) *MockRepoLike_Open_Call
func (*MockRepoLike_Open_Call) RunAndReturn ¶
func (_c *MockRepoLike_Open_Call) RunAndReturn(run func(v repo.RepoType, s string, s1 string, cloneOptions ...repo.CloneOption) (*git.Repository, *git.Worktree, error)) *MockRepoLike_Open_Call
type MockRepoLike_Push_Call ¶
MockRepoLike_Push_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Push'
func (*MockRepoLike_Push_Call) Return ¶
func (_c *MockRepoLike_Push_Call) Return(err error) *MockRepoLike_Push_Call
func (*MockRepoLike_Push_Call) Run ¶
func (_c *MockRepoLike_Push_Call) Run(run func(pushOptions *git.PushOptions)) *MockRepoLike_Push_Call
func (*MockRepoLike_Push_Call) RunAndReturn ¶
func (_c *MockRepoLike_Push_Call) RunAndReturn(run func(pushOptions *git.PushOptions) error) *MockRepoLike_Push_Call
type MockRepoLike_SetBasicAuth_Call ¶
MockRepoLike_SetBasicAuth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetBasicAuth'
func (*MockRepoLike_SetBasicAuth_Call) Return ¶
func (_c *MockRepoLike_SetBasicAuth_Call) Return() *MockRepoLike_SetBasicAuth_Call
func (*MockRepoLike_SetBasicAuth_Call) Run ¶
func (_c *MockRepoLike_SetBasicAuth_Call) Run(run func(s string, s1 string)) *MockRepoLike_SetBasicAuth_Call
func (*MockRepoLike_SetBasicAuth_Call) RunAndReturn ¶
func (_c *MockRepoLike_SetBasicAuth_Call) RunAndReturn(run func(s string, s1 string)) *MockRepoLike_SetBasicAuth_Call
type MockRepoLike_SetKey_Call ¶
MockRepoLike_SetKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetKey'
func (*MockRepoLike_SetKey_Call) Return ¶
func (_c *MockRepoLike_SetKey_Call) Return() *MockRepoLike_SetKey_Call
func (*MockRepoLike_SetKey_Call) Run ¶
func (_c *MockRepoLike_SetKey_Call) Run(run func(publicKeys *ssh.PublicKeys)) *MockRepoLike_SetKey_Call
func (*MockRepoLike_SetKey_Call) RunAndReturn ¶
func (_c *MockRepoLike_SetKey_Call) RunAndReturn(run func(publicKeys *ssh.PublicKeys)) *MockRepoLike_SetKey_Call
type MockRepoLike_SetRepo_Call ¶
MockRepoLike_SetRepo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetRepo'
func (*MockRepoLike_SetRepo_Call) Return ¶
func (_c *MockRepoLike_SetRepo_Call) Return() *MockRepoLike_SetRepo_Call
func (*MockRepoLike_SetRepo_Call) Run ¶
func (_c *MockRepoLike_SetRepo_Call) Run(run func(repository *git.Repository)) *MockRepoLike_SetRepo_Call
func (*MockRepoLike_SetRepo_Call) RunAndReturn ¶
func (_c *MockRepoLike_SetRepo_Call) RunAndReturn(run func(repository *git.Repository)) *MockRepoLike_SetRepo_Call
type MockRepoLike_SetSource_Call ¶
MockRepoLike_SetSource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSource'
func (*MockRepoLike_SetSource_Call) Return ¶
func (_c *MockRepoLike_SetSource_Call) Return() *MockRepoLike_SetSource_Call
func (*MockRepoLike_SetSource_Call) Run ¶
func (_c *MockRepoLike_SetSource_Call) Run(run func(n int)) *MockRepoLike_SetSource_Call
func (*MockRepoLike_SetSource_Call) RunAndReturn ¶
func (_c *MockRepoLike_SetSource_Call) RunAndReturn(run func(n int)) *MockRepoLike_SetSource_Call
type MockRepoLike_SetTree_Call ¶
MockRepoLike_SetTree_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTree'
func (*MockRepoLike_SetTree_Call) Return ¶
func (_c *MockRepoLike_SetTree_Call) Return() *MockRepoLike_SetTree_Call
func (*MockRepoLike_SetTree_Call) Run ¶
func (_c *MockRepoLike_SetTree_Call) Run(run func(worktree *git.Worktree)) *MockRepoLike_SetTree_Call
func (*MockRepoLike_SetTree_Call) RunAndReturn ¶
func (_c *MockRepoLike_SetTree_Call) RunAndReturn(run func(worktree *git.Worktree)) *MockRepoLike_SetTree_Call
type MockRepoLike_SourceIs_Call ¶
MockRepoLike_SourceIs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SourceIs'
func (*MockRepoLike_SourceIs_Call) Return ¶
func (_c *MockRepoLike_SourceIs_Call) Return(b bool) *MockRepoLike_SourceIs_Call
func (*MockRepoLike_SourceIs_Call) Run ¶
func (_c *MockRepoLike_SourceIs_Call) Run(run func(n int)) *MockRepoLike_SourceIs_Call
func (*MockRepoLike_SourceIs_Call) RunAndReturn ¶
func (_c *MockRepoLike_SourceIs_Call) RunAndReturn(run func(n int) bool) *MockRepoLike_SourceIs_Call
type MockRepoLike_WalkTree_Call ¶
MockRepoLike_WalkTree_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WalkTree'
func (*MockRepoLike_WalkTree_Call) Return ¶
func (_c *MockRepoLike_WalkTree_Call) Return(err error) *MockRepoLike_WalkTree_Call
func (*MockRepoLike_WalkTree_Call) Run ¶
func (_c *MockRepoLike_WalkTree_Call) Run(run func(fn func(*object.File) error)) *MockRepoLike_WalkTree_Call
func (*MockRepoLike_WalkTree_Call) RunAndReturn ¶
func (_c *MockRepoLike_WalkTree_Call) RunAndReturn(run func(fn func(*object.File) error) error) *MockRepoLike_WalkTree_Call