Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) Add(arg0 string) error
- func (m *MockClient) Branch(arg0 string) error
- func (m *MockClient) Clone(arg0 context.Context) error
- func (m *MockClient) Commit(arg0 string, arg1 ...git.CommitOpt) error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) Init() error
- func (m *MockClient) Pull(arg0 context.Context, arg1 string) error
- func (m *MockClient) Push(arg0 context.Context) error
- func (m *MockClient) Remove(arg0 string) error
- func (m *MockClient) ValidateRemoteExists(arg0 context.Context) error
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) Add(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Branch(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Clone(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Commit(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Init() *gomock.Call
- func (mr *MockClientMockRecorder) Pull(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Push(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Remove(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ValidateRemoteExists(arg0 interface{}) *gomock.Call
- type MockGoGit
- func (m *MockGoGit) AddGlob(arg0 string, arg1 *git0.Worktree) error
- func (m *MockGoGit) Checkout(arg0 *git0.Worktree, arg1 *git0.CheckoutOptions) error
- func (m *MockGoGit) Clone(arg0 context.Context, arg1, arg2 string, arg3 transport.AuthMethod) (*git0.Repository, error)
- func (m *MockGoGit) CloneInMemory(arg0 context.Context, arg1 string, arg2 transport.AuthMethod) (*git0.Repository, error)
- func (m *MockGoGit) Commit(arg0 string, arg1 *object.Signature, arg2 *git0.Worktree) (plumbing.Hash, error)
- func (m *MockGoGit) CommitObject(arg0 *git0.Repository, arg1 plumbing.Hash) (*object.Commit, error)
- func (m *MockGoGit) Create(arg0 *git0.Repository, arg1 string) (*git0.Remote, error)
- func (m *MockGoGit) CreateBranch(arg0 *git0.Repository, arg1 *config.Branch) error
- func (m *MockGoGit) EXPECT() *MockGoGitMockRecorder
- func (m *MockGoGit) Head(arg0 *git0.Repository) (*plumbing.Reference, error)
- func (m *MockGoGit) Init(arg0 string) (*git0.Repository, error)
- func (m *MockGoGit) ListRemotes(arg0 *git0.Repository, arg1 transport.AuthMethod) ([]*plumbing.Reference, error)
- func (m *MockGoGit) ListWithContext(arg0 context.Context, arg1 *git0.Remote, arg2 transport.AuthMethod) ([]*plumbing.Reference, error)
- func (m *MockGoGit) NewRemote(arg0, arg1 string) *git0.Remote
- func (m *MockGoGit) OpenRepo() (*git0.Repository, error)
- func (m *MockGoGit) OpenWorktree(arg0 *git0.Repository) (*git0.Worktree, error)
- func (m *MockGoGit) PullWithContext(arg0 context.Context, arg1 *git0.Worktree, arg2 transport.AuthMethod, ...) error
- func (m *MockGoGit) PushWithContext(arg0 context.Context, arg1 *git0.Repository, arg2 transport.AuthMethod) error
- func (m *MockGoGit) Remove(arg0 string, arg1 *git0.Worktree) (plumbing.Hash, error)
- func (m *MockGoGit) SetRepositoryReference(arg0 *git0.Repository, arg1 *plumbing.Reference) error
- func (m *MockGoGit) WithRepositoryDirectory(arg0 string)
- type MockGoGitMockRecorder
- func (mr *MockGoGitMockRecorder) AddGlob(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGoGitMockRecorder) Checkout(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGoGitMockRecorder) Clone(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockGoGitMockRecorder) CloneInMemory(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGoGitMockRecorder) Commit(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGoGitMockRecorder) CommitObject(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGoGitMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGoGitMockRecorder) CreateBranch(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGoGitMockRecorder) Head(arg0 interface{}) *gomock.Call
- func (mr *MockGoGitMockRecorder) Init(arg0 interface{}) *gomock.Call
- func (mr *MockGoGitMockRecorder) ListRemotes(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGoGitMockRecorder) ListWithContext(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGoGitMockRecorder) NewRemote(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGoGitMockRecorder) OpenRepo() *gomock.Call
- func (mr *MockGoGitMockRecorder) OpenWorktree(arg0 interface{}) *gomock.Call
- func (mr *MockGoGitMockRecorder) PullWithContext(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockGoGitMockRecorder) PushWithContext(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGoGitMockRecorder) Remove(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGoGitMockRecorder) SetRepositoryReference(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGoGitMockRecorder) WithRepositoryDirectory(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) Branch ¶
func (m *MockClient) Branch(arg0 string) error
Branch mocks base method.
func (*MockClient) Clone ¶
func (m *MockClient) Clone(arg0 context.Context) error
Clone mocks base method.
func (*MockClient) Commit ¶
func (m *MockClient) Commit(arg0 string, arg1 ...git.CommitOpt) error
Commit mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) Pull ¶
func (m *MockClient) Pull(arg0 context.Context, arg1 string) error
Pull mocks base method.
func (*MockClient) Push ¶
func (m *MockClient) Push(arg0 context.Context) error
Push mocks base method.
func (*MockClient) Remove ¶
func (m *MockClient) Remove(arg0 string) error
Remove mocks base method.
func (*MockClient) ValidateRemoteExists ¶
func (m *MockClient) ValidateRemoteExists(arg0 context.Context) error
ValidateRemoteExists mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) Add ¶
func (mr *MockClientMockRecorder) Add(arg0 interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockClientMockRecorder) Branch ¶
func (mr *MockClientMockRecorder) Branch(arg0 interface{}) *gomock.Call
Branch indicates an expected call of Branch.
func (*MockClientMockRecorder) Clone ¶
func (mr *MockClientMockRecorder) Clone(arg0 interface{}) *gomock.Call
Clone indicates an expected call of Clone.
func (*MockClientMockRecorder) Commit ¶
func (mr *MockClientMockRecorder) Commit(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Commit indicates an expected call of Commit.
func (*MockClientMockRecorder) Init ¶
func (mr *MockClientMockRecorder) Init() *gomock.Call
Init indicates an expected call of Init.
func (*MockClientMockRecorder) Pull ¶
func (mr *MockClientMockRecorder) Pull(arg0, arg1 interface{}) *gomock.Call
Pull indicates an expected call of Pull.
func (*MockClientMockRecorder) Push ¶
func (mr *MockClientMockRecorder) Push(arg0 interface{}) *gomock.Call
Push indicates an expected call of Push.
func (*MockClientMockRecorder) Remove ¶
func (mr *MockClientMockRecorder) Remove(arg0 interface{}) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockClientMockRecorder) ValidateRemoteExists ¶
func (mr *MockClientMockRecorder) ValidateRemoteExists(arg0 interface{}) *gomock.Call
ValidateRemoteExists indicates an expected call of ValidateRemoteExists.
type MockGoGit ¶
type MockGoGit struct {
// contains filtered or unexported fields
}
MockGoGit is a mock of GoGit interface.
func NewMockGoGit ¶
func NewMockGoGit(ctrl *gomock.Controller) *MockGoGit
NewMockGoGit creates a new mock instance.
func (*MockGoGit) Clone ¶
func (m *MockGoGit) Clone(arg0 context.Context, arg1, arg2 string, arg3 transport.AuthMethod) (*git0.Repository, error)
Clone mocks base method.
func (*MockGoGit) CloneInMemory ¶
func (m *MockGoGit) CloneInMemory(arg0 context.Context, arg1 string, arg2 transport.AuthMethod) (*git0.Repository, error)
CloneInMemory mocks base method.
func (*MockGoGit) Commit ¶
func (m *MockGoGit) Commit(arg0 string, arg1 *object.Signature, arg2 *git0.Worktree) (plumbing.Hash, error)
Commit mocks base method.
func (*MockGoGit) CommitObject ¶
CommitObject mocks base method.
func (*MockGoGit) CreateBranch ¶
CreateBranch mocks base method.
func (*MockGoGit) EXPECT ¶
func (m *MockGoGit) EXPECT() *MockGoGitMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGoGit) Init ¶
func (m *MockGoGit) Init(arg0 string) (*git0.Repository, error)
Init mocks base method.
func (*MockGoGit) ListRemotes ¶
func (m *MockGoGit) ListRemotes(arg0 *git0.Repository, arg1 transport.AuthMethod) ([]*plumbing.Reference, error)
ListRemotes mocks base method.
func (*MockGoGit) ListWithContext ¶
func (m *MockGoGit) ListWithContext(arg0 context.Context, arg1 *git0.Remote, arg2 transport.AuthMethod) ([]*plumbing.Reference, error)
ListWithContext mocks base method.
func (*MockGoGit) OpenRepo ¶
func (m *MockGoGit) OpenRepo() (*git0.Repository, error)
OpenRepo mocks base method.
func (*MockGoGit) OpenWorktree ¶
OpenWorktree mocks base method.
func (*MockGoGit) PullWithContext ¶
func (m *MockGoGit) PullWithContext(arg0 context.Context, arg1 *git0.Worktree, arg2 transport.AuthMethod, arg3 plumbing.ReferenceName) error
PullWithContext mocks base method.
func (*MockGoGit) PushWithContext ¶
func (m *MockGoGit) PushWithContext(arg0 context.Context, arg1 *git0.Repository, arg2 transport.AuthMethod) error
PushWithContext mocks base method.
func (*MockGoGit) SetRepositoryReference ¶
SetRepositoryReference mocks base method.
func (*MockGoGit) WithRepositoryDirectory ¶
WithRepositoryDirectory mocks base method.
type MockGoGitMockRecorder ¶
type MockGoGitMockRecorder struct {
// contains filtered or unexported fields
}
MockGoGitMockRecorder is the mock recorder for MockGoGit.
func (*MockGoGitMockRecorder) AddGlob ¶
func (mr *MockGoGitMockRecorder) AddGlob(arg0, arg1 interface{}) *gomock.Call
AddGlob indicates an expected call of AddGlob.
func (*MockGoGitMockRecorder) Checkout ¶
func (mr *MockGoGitMockRecorder) Checkout(arg0, arg1 interface{}) *gomock.Call
Checkout indicates an expected call of Checkout.
func (*MockGoGitMockRecorder) Clone ¶
func (mr *MockGoGitMockRecorder) Clone(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Clone indicates an expected call of Clone.
func (*MockGoGitMockRecorder) CloneInMemory ¶
func (mr *MockGoGitMockRecorder) CloneInMemory(arg0, arg1, arg2 interface{}) *gomock.Call
CloneInMemory indicates an expected call of CloneInMemory.
func (*MockGoGitMockRecorder) Commit ¶
func (mr *MockGoGitMockRecorder) Commit(arg0, arg1, arg2 interface{}) *gomock.Call
Commit indicates an expected call of Commit.
func (*MockGoGitMockRecorder) CommitObject ¶
func (mr *MockGoGitMockRecorder) CommitObject(arg0, arg1 interface{}) *gomock.Call
CommitObject indicates an expected call of CommitObject.
func (*MockGoGitMockRecorder) Create ¶
func (mr *MockGoGitMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockGoGitMockRecorder) CreateBranch ¶
func (mr *MockGoGitMockRecorder) CreateBranch(arg0, arg1 interface{}) *gomock.Call
CreateBranch indicates an expected call of CreateBranch.
func (*MockGoGitMockRecorder) Head ¶
func (mr *MockGoGitMockRecorder) Head(arg0 interface{}) *gomock.Call
Head indicates an expected call of Head.
func (*MockGoGitMockRecorder) Init ¶
func (mr *MockGoGitMockRecorder) Init(arg0 interface{}) *gomock.Call
Init indicates an expected call of Init.
func (*MockGoGitMockRecorder) ListRemotes ¶
func (mr *MockGoGitMockRecorder) ListRemotes(arg0, arg1 interface{}) *gomock.Call
ListRemotes indicates an expected call of ListRemotes.
func (*MockGoGitMockRecorder) ListWithContext ¶
func (mr *MockGoGitMockRecorder) ListWithContext(arg0, arg1, arg2 interface{}) *gomock.Call
ListWithContext indicates an expected call of ListWithContext.
func (*MockGoGitMockRecorder) NewRemote ¶
func (mr *MockGoGitMockRecorder) NewRemote(arg0, arg1 interface{}) *gomock.Call
NewRemote indicates an expected call of NewRemote.
func (*MockGoGitMockRecorder) OpenRepo ¶
func (mr *MockGoGitMockRecorder) OpenRepo() *gomock.Call
OpenRepo indicates an expected call of OpenRepo.
func (*MockGoGitMockRecorder) OpenWorktree ¶
func (mr *MockGoGitMockRecorder) OpenWorktree(arg0 interface{}) *gomock.Call
OpenWorktree indicates an expected call of OpenWorktree.
func (*MockGoGitMockRecorder) PullWithContext ¶
func (mr *MockGoGitMockRecorder) PullWithContext(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
PullWithContext indicates an expected call of PullWithContext.
func (*MockGoGitMockRecorder) PushWithContext ¶
func (mr *MockGoGitMockRecorder) PushWithContext(arg0, arg1, arg2 interface{}) *gomock.Call
PushWithContext indicates an expected call of PushWithContext.
func (*MockGoGitMockRecorder) Remove ¶
func (mr *MockGoGitMockRecorder) Remove(arg0, arg1 interface{}) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockGoGitMockRecorder) SetRepositoryReference ¶
func (mr *MockGoGitMockRecorder) SetRepositoryReference(arg0, arg1 interface{}) *gomock.Call
SetRepositoryReference indicates an expected call of SetRepositoryReference.
func (*MockGoGitMockRecorder) WithRepositoryDirectory ¶
func (mr *MockGoGitMockRecorder) WithRepositoryDirectory(arg0 interface{}) *gomock.Call
WithRepositoryDirectory indicates an expected call of WithRepositoryDirectory.