gittest

package
v0.51.3 Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package gittest is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepo

type MockRepo struct {
	// contains filtered or unexported fields
}

MockRepo is a mock of Repo interface.

func NewMockRepo

func NewMockRepo(ctrl *gomock.Controller) *MockRepo

NewMockRepo creates a new mock instance.

func (*MockRepo) ChangedFiles

func (m *MockRepo) ChangedFiles(ctx context.Context, from, to string) ([]string, error)

ChangedFiles mocks base method.

func (*MockRepo) Checkout

func (m *MockRepo) Checkout(ctx context.Context, commitish string) error

Checkout mocks base method.

func (*MockRepo) CheckoutPullRequest

func (m *MockRepo) CheckoutPullRequest(ctx context.Context, number int, branch string) error

CheckoutPullRequest mocks base method.

func (*MockRepo) Clean

func (m *MockRepo) Clean() error

Clean mocks base method.

func (*MockRepo) CleanPath added in v0.49.3

func (m *MockRepo) CleanPath(ctx context.Context, relativePath string) error

CleanPath mocks base method.

func (*MockRepo) CommitChanges

func (m *MockRepo) CommitChanges(ctx context.Context, branch, message string, newBranch bool, changes map[string][]byte, trailers map[string]string) error

CommitChanges mocks base method.

func (*MockRepo) Copy

func (m *MockRepo) Copy(dest string) (git.Worktree, error)

Copy mocks base method.

func (*MockRepo) CopyToModify added in v0.50.1

func (m *MockRepo) CopyToModify(dest string) (git.Repo, error)

CopyToModify mocks base method.

func (*MockRepo) EXPECT

func (m *MockRepo) EXPECT() *MockRepoMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRepo) GetClonedBranch

func (m *MockRepo) GetClonedBranch() string

GetClonedBranch mocks base method.

func (*MockRepo) GetCommitForRev added in v0.48.0

func (m *MockRepo) GetCommitForRev(ctx context.Context, rev string) (git.Commit, error)

GetCommitForRev mocks base method.

func (*MockRepo) GetLatestCommit

func (m *MockRepo) GetLatestCommit(ctx context.Context) (git.Commit, error)

GetLatestCommit mocks base method.

func (*MockRepo) GetPath

func (m *MockRepo) GetPath() string

GetPath mocks base method.

func (*MockRepo) ListCommits

func (m *MockRepo) ListCommits(ctx context.Context, visionRange string) ([]git.Commit, error)

ListCommits mocks base method.

func (*MockRepo) MergeRemoteBranch

func (m *MockRepo) MergeRemoteBranch(ctx context.Context, branch, commit, mergeCommitMessage string) error

MergeRemoteBranch mocks base method.

func (*MockRepo) Pull

func (m *MockRepo) Pull(ctx context.Context, branch string) error

Pull mocks base method.

func (*MockRepo) Push

func (m *MockRepo) Push(ctx context.Context, branch string) error

Push mocks base method.

type MockRepoMockRecorder

type MockRepoMockRecorder struct {
	// contains filtered or unexported fields
}

MockRepoMockRecorder is the mock recorder for MockRepo.

func (*MockRepoMockRecorder) ChangedFiles

func (mr *MockRepoMockRecorder) ChangedFiles(ctx, from, to any) *gomock.Call

ChangedFiles indicates an expected call of ChangedFiles.

func (*MockRepoMockRecorder) Checkout

func (mr *MockRepoMockRecorder) Checkout(ctx, commitish any) *gomock.Call

Checkout indicates an expected call of Checkout.

func (*MockRepoMockRecorder) CheckoutPullRequest

func (mr *MockRepoMockRecorder) CheckoutPullRequest(ctx, number, branch any) *gomock.Call

CheckoutPullRequest indicates an expected call of CheckoutPullRequest.

func (*MockRepoMockRecorder) Clean

func (mr *MockRepoMockRecorder) Clean() *gomock.Call

Clean indicates an expected call of Clean.

func (*MockRepoMockRecorder) CleanPath added in v0.49.3

func (mr *MockRepoMockRecorder) CleanPath(ctx, relativePath any) *gomock.Call

CleanPath indicates an expected call of CleanPath.

func (*MockRepoMockRecorder) CommitChanges

func (mr *MockRepoMockRecorder) CommitChanges(ctx, branch, message, newBranch, changes, trailers any) *gomock.Call

CommitChanges indicates an expected call of CommitChanges.

func (*MockRepoMockRecorder) Copy

func (mr *MockRepoMockRecorder) Copy(dest any) *gomock.Call

Copy indicates an expected call of Copy.

func (*MockRepoMockRecorder) CopyToModify added in v0.50.1

func (mr *MockRepoMockRecorder) CopyToModify(dest any) *gomock.Call

CopyToModify indicates an expected call of CopyToModify.

func (*MockRepoMockRecorder) GetClonedBranch

func (mr *MockRepoMockRecorder) GetClonedBranch() *gomock.Call

GetClonedBranch indicates an expected call of GetClonedBranch.

func (*MockRepoMockRecorder) GetCommitForRev added in v0.48.0

func (mr *MockRepoMockRecorder) GetCommitForRev(ctx, rev any) *gomock.Call

GetCommitForRev indicates an expected call of GetCommitForRev.

func (*MockRepoMockRecorder) GetLatestCommit

func (mr *MockRepoMockRecorder) GetLatestCommit(ctx any) *gomock.Call

GetLatestCommit indicates an expected call of GetLatestCommit.

func (*MockRepoMockRecorder) GetPath

func (mr *MockRepoMockRecorder) GetPath() *gomock.Call

GetPath indicates an expected call of GetPath.

func (*MockRepoMockRecorder) ListCommits

func (mr *MockRepoMockRecorder) ListCommits(ctx, visionRange any) *gomock.Call

ListCommits indicates an expected call of ListCommits.

func (*MockRepoMockRecorder) MergeRemoteBranch

func (mr *MockRepoMockRecorder) MergeRemoteBranch(ctx, branch, commit, mergeCommitMessage any) *gomock.Call

MergeRemoteBranch indicates an expected call of MergeRemoteBranch.

func (*MockRepoMockRecorder) Pull

func (mr *MockRepoMockRecorder) Pull(ctx, branch any) *gomock.Call

Pull indicates an expected call of Pull.

func (*MockRepoMockRecorder) Push

func (mr *MockRepoMockRecorder) Push(ctx, branch any) *gomock.Call

Push indicates an expected call of Push.

Jump to

Keyboard shortcuts

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