gittest

package
v0.47.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 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(arg0 context.Context, arg1, arg2 string) ([]string, error)

ChangedFiles mocks base method.

func (*MockRepo) Checkout

func (m *MockRepo) Checkout(arg0 context.Context, arg1 string) error

Checkout mocks base method.

func (*MockRepo) CheckoutPullRequest

func (m *MockRepo) CheckoutPullRequest(arg0 context.Context, arg1 int, arg2 string) error

CheckoutPullRequest mocks base method.

func (*MockRepo) Clean

func (m *MockRepo) Clean() error

Clean mocks base method.

func (*MockRepo) CommitChanges

func (m *MockRepo) CommitChanges(arg0 context.Context, arg1, arg2 string, arg3 bool, arg4 map[string][]byte) error

CommitChanges mocks base method.

func (*MockRepo) Copy

func (m *MockRepo) Copy(arg0 string) (git.Repo, error)

Copy 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) GetCommitHashForRev

func (m *MockRepo) GetCommitHashForRev(arg0 context.Context, arg1 string) (string, error)

GetCommitHashForRev mocks base method.

func (*MockRepo) GetLatestCommit

func (m *MockRepo) GetLatestCommit(arg0 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(arg0 context.Context, arg1 string) ([]git.Commit, error)

ListCommits mocks base method.

func (*MockRepo) MergeRemoteBranch

func (m *MockRepo) MergeRemoteBranch(arg0 context.Context, arg1, arg2, arg3 string) error

MergeRemoteBranch mocks base method.

func (*MockRepo) Pull

func (m *MockRepo) Pull(arg0 context.Context, arg1 string) error

Pull mocks base method.

func (*MockRepo) Push

func (m *MockRepo) Push(arg0 context.Context, arg1 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(arg0, arg1, arg2 interface{}) *gomock.Call

ChangedFiles indicates an expected call of ChangedFiles.

func (*MockRepoMockRecorder) Checkout

func (mr *MockRepoMockRecorder) Checkout(arg0, arg1 interface{}) *gomock.Call

Checkout indicates an expected call of Checkout.

func (*MockRepoMockRecorder) CheckoutPullRequest

func (mr *MockRepoMockRecorder) CheckoutPullRequest(arg0, arg1, arg2 interface{}) *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) CommitChanges

func (mr *MockRepoMockRecorder) CommitChanges(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

CommitChanges indicates an expected call of CommitChanges.

func (*MockRepoMockRecorder) Copy

func (mr *MockRepoMockRecorder) Copy(arg0 interface{}) *gomock.Call

Copy indicates an expected call of Copy.

func (*MockRepoMockRecorder) GetClonedBranch

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

GetClonedBranch indicates an expected call of GetClonedBranch.

func (*MockRepoMockRecorder) GetCommitHashForRev

func (mr *MockRepoMockRecorder) GetCommitHashForRev(arg0, arg1 interface{}) *gomock.Call

GetCommitHashForRev indicates an expected call of GetCommitHashForRev.

func (*MockRepoMockRecorder) GetLatestCommit

func (mr *MockRepoMockRecorder) GetLatestCommit(arg0 interface{}) *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(arg0, arg1 interface{}) *gomock.Call

ListCommits indicates an expected call of ListCommits.

func (*MockRepoMockRecorder) MergeRemoteBranch

func (mr *MockRepoMockRecorder) MergeRemoteBranch(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

MergeRemoteBranch indicates an expected call of MergeRemoteBranch.

func (*MockRepoMockRecorder) Pull

func (mr *MockRepoMockRecorder) Pull(arg0, arg1 interface{}) *gomock.Call

Pull indicates an expected call of Pull.

func (*MockRepoMockRecorder) Push

func (mr *MockRepoMockRecorder) Push(arg0, arg1 interface{}) *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