Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockGoGit
- func (m *MockGoGit) AddGlob(f string, w *git.Worktree) error
- func (m *MockGoGit) Checkout(w *git.Worktree, opts *git.CheckoutOptions) error
- func (m *MockGoGit) Clone(ctx context.Context, dir, repoUrl string, auth transport.AuthMethod) (*git.Repository, error)
- func (m_2 *MockGoGit) Commit(m string, sig *object.Signature, w *git.Worktree) (plumbing.Hash, error)
- func (m *MockGoGit) CommitObject(r *git.Repository, h plumbing.Hash) (*object.Commit, error)
- func (m *MockGoGit) Create(r *git.Repository, url string) (*git.Remote, error)
- func (m *MockGoGit) CreateBranch(r *git.Repository, arg1 *config.Branch) error
- func (m *MockGoGit) EXPECT() *MockGoGitMockRecorder
- func (m *MockGoGit) Head(r *git.Repository) (*plumbing.Reference, error)
- func (m *MockGoGit) Init(dir string) (*git.Repository, error)
- func (m *MockGoGit) ListRemotes(r *git.Repository, auth transport.AuthMethod) ([]*plumbing.Reference, error)
- func (m *MockGoGit) ListWithContext(ctx context.Context, r *git.Remote, auth transport.AuthMethod) ([]*plumbing.Reference, error)
- func (m *MockGoGit) NewRemote(url, remoteName string) *git.Remote
- func (m *MockGoGit) OpenDir(dir string) (*git.Repository, error)
- func (m *MockGoGit) OpenWorktree(r *git.Repository) (*git.Worktree, error)
- func (m *MockGoGit) PullWithContext(ctx context.Context, w *git.Worktree, auth transport.AuthMethod, ...) error
- func (m *MockGoGit) PushWithContext(ctx context.Context, r *git.Repository, auth transport.AuthMethod) error
- func (m *MockGoGit) Remove(f string, w *git.Worktree) (plumbing.Hash, error)
- func (m *MockGoGit) SetRepositoryReference(r *git.Repository, p *plumbing.Reference) error
- type MockGoGitMockRecorder
- func (mr *MockGoGitMockRecorder) AddGlob(f, w any) *gomock.Call
- func (mr *MockGoGitMockRecorder) Checkout(w, opts any) *gomock.Call
- func (mr *MockGoGitMockRecorder) Clone(ctx, dir, repoUrl, auth any) *gomock.Call
- func (mr *MockGoGitMockRecorder) Commit(m, sig, w any) *gomock.Call
- func (mr *MockGoGitMockRecorder) CommitObject(r, h any) *gomock.Call
- func (mr *MockGoGitMockRecorder) Create(r, url any) *gomock.Call
- func (mr *MockGoGitMockRecorder) CreateBranch(r, arg1 any) *gomock.Call
- func (mr *MockGoGitMockRecorder) Head(r any) *gomock.Call
- func (mr *MockGoGitMockRecorder) Init(dir any) *gomock.Call
- func (mr *MockGoGitMockRecorder) ListRemotes(r, auth any) *gomock.Call
- func (mr *MockGoGitMockRecorder) ListWithContext(ctx, r, auth any) *gomock.Call
- func (mr *MockGoGitMockRecorder) NewRemote(url, remoteName any) *gomock.Call
- func (mr *MockGoGitMockRecorder) OpenDir(dir any) *gomock.Call
- func (mr *MockGoGitMockRecorder) OpenWorktree(r any) *gomock.Call
- func (mr *MockGoGitMockRecorder) PullWithContext(ctx, w, auth, ref any) *gomock.Call
- func (mr *MockGoGitMockRecorder) PushWithContext(ctx, r, auth any) *gomock.Call
- func (mr *MockGoGitMockRecorder) Remove(f, w any) *gomock.Call
- func (mr *MockGoGitMockRecorder) SetRepositoryReference(r, p any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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(ctx context.Context, dir, repoUrl string, auth transport.AuthMethod) (*git.Repository, error)
Clone mocks base method.
func (*MockGoGit) Commit ¶
func (m_2 *MockGoGit) Commit(m string, sig *object.Signature, w *git.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(dir string) (*git.Repository, error)
Init mocks base method.
func (*MockGoGit) ListRemotes ¶
func (m *MockGoGit) ListRemotes(r *git.Repository, auth transport.AuthMethod) ([]*plumbing.Reference, error)
ListRemotes mocks base method.
func (*MockGoGit) ListWithContext ¶
func (m *MockGoGit) ListWithContext(ctx context.Context, r *git.Remote, auth transport.AuthMethod) ([]*plumbing.Reference, error)
ListWithContext mocks base method.
func (*MockGoGit) OpenDir ¶
func (m *MockGoGit) OpenDir(dir string) (*git.Repository, error)
OpenDir mocks base method.
func (*MockGoGit) OpenWorktree ¶
OpenWorktree mocks base method.
func (*MockGoGit) PullWithContext ¶
func (m *MockGoGit) PullWithContext(ctx context.Context, w *git.Worktree, auth transport.AuthMethod, ref plumbing.ReferenceName) error
PullWithContext mocks base method.
func (*MockGoGit) PushWithContext ¶
func (m *MockGoGit) PushWithContext(ctx context.Context, r *git.Repository, auth transport.AuthMethod) error
PushWithContext mocks base method.
func (*MockGoGit) SetRepositoryReference ¶
SetRepositoryReference 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(f, w any) *gomock.Call
AddGlob indicates an expected call of AddGlob.
func (*MockGoGitMockRecorder) Checkout ¶
func (mr *MockGoGitMockRecorder) Checkout(w, opts any) *gomock.Call
Checkout indicates an expected call of Checkout.
func (*MockGoGitMockRecorder) Clone ¶
func (mr *MockGoGitMockRecorder) Clone(ctx, dir, repoUrl, auth any) *gomock.Call
Clone indicates an expected call of Clone.
func (*MockGoGitMockRecorder) Commit ¶
func (mr *MockGoGitMockRecorder) Commit(m, sig, w any) *gomock.Call
Commit indicates an expected call of Commit.
func (*MockGoGitMockRecorder) CommitObject ¶
func (mr *MockGoGitMockRecorder) CommitObject(r, h any) *gomock.Call
CommitObject indicates an expected call of CommitObject.
func (*MockGoGitMockRecorder) Create ¶
func (mr *MockGoGitMockRecorder) Create(r, url any) *gomock.Call
Create indicates an expected call of Create.
func (*MockGoGitMockRecorder) CreateBranch ¶
func (mr *MockGoGitMockRecorder) CreateBranch(r, arg1 any) *gomock.Call
CreateBranch indicates an expected call of CreateBranch.
func (*MockGoGitMockRecorder) Head ¶
func (mr *MockGoGitMockRecorder) Head(r any) *gomock.Call
Head indicates an expected call of Head.
func (*MockGoGitMockRecorder) Init ¶
func (mr *MockGoGitMockRecorder) Init(dir any) *gomock.Call
Init indicates an expected call of Init.
func (*MockGoGitMockRecorder) ListRemotes ¶
func (mr *MockGoGitMockRecorder) ListRemotes(r, auth any) *gomock.Call
ListRemotes indicates an expected call of ListRemotes.
func (*MockGoGitMockRecorder) ListWithContext ¶
func (mr *MockGoGitMockRecorder) ListWithContext(ctx, r, auth any) *gomock.Call
ListWithContext indicates an expected call of ListWithContext.
func (*MockGoGitMockRecorder) NewRemote ¶
func (mr *MockGoGitMockRecorder) NewRemote(url, remoteName any) *gomock.Call
NewRemote indicates an expected call of NewRemote.
func (*MockGoGitMockRecorder) OpenDir ¶
func (mr *MockGoGitMockRecorder) OpenDir(dir any) *gomock.Call
OpenDir indicates an expected call of OpenDir.
func (*MockGoGitMockRecorder) OpenWorktree ¶
func (mr *MockGoGitMockRecorder) OpenWorktree(r any) *gomock.Call
OpenWorktree indicates an expected call of OpenWorktree.
func (*MockGoGitMockRecorder) PullWithContext ¶
func (mr *MockGoGitMockRecorder) PullWithContext(ctx, w, auth, ref any) *gomock.Call
PullWithContext indicates an expected call of PullWithContext.
func (*MockGoGitMockRecorder) PushWithContext ¶
func (mr *MockGoGitMockRecorder) PushWithContext(ctx, r, auth any) *gomock.Call
PushWithContext indicates an expected call of PushWithContext.
func (*MockGoGitMockRecorder) Remove ¶
func (mr *MockGoGitMockRecorder) Remove(f, w any) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockGoGitMockRecorder) SetRepositoryReference ¶
func (mr *MockGoGitMockRecorder) SetRepositoryReference(r, p any) *gomock.Call
SetRepositoryReference indicates an expected call of SetRepositoryReference.