fakegit

package
v0.0.0-...-022c05c Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCommitClient

type FakeCommitClient struct{}

FakeCommitClient fakes the gardener/ci-infra githubinteractor CommitClient

func (*FakeCommitClient) Commit

func (gc *FakeCommitClient) Commit(_, _, _, _ string, _ bool) error

Commit is a fake for Commit

type FakeGitClientFactory

type FakeGitClientFactory struct {
	DirectoryString string
}

FakeGitClientFactory fakes the prow git client factory

func (*FakeGitClientFactory) Clean

func (fgcf *FakeGitClientFactory) Clean() error

Clean is a fake for Clean

func (*FakeGitClientFactory) ClientFor

func (fgcf *FakeGitClientFactory) ClientFor(_, _ string) (git.RepoClient, error)

ClientFor is a fake for ClientFor

func (*FakeGitClientFactory) ClientForWithRepoOpts

func (fgcf *FakeGitClientFactory) ClientForWithRepoOpts(_, _ string, _ git.RepoOpts) (git.RepoClient, error)

ClientForWithRepoOpts is a fake for ClientForWithRepoOpts

func (*FakeGitClientFactory) ClientFromDir

func (fgcf *FakeGitClientFactory) ClientFromDir(_, _, _ string) (git.RepoClient, error)

ClientFromDir is a fake for ClientFromDir

type FakeInteractor

type FakeInteractor struct{}

FakeInteractor fakes the prow git Publisher

func (*FakeInteractor) Am

func (fi *FakeInteractor) Am(_ string) error

Am is a fake for Am

func (*FakeInteractor) BranchExists

func (fi *FakeInteractor) BranchExists(_ string) bool

BranchExists is a fake for BranchExists

func (*FakeInteractor) Checkout

func (fi *FakeInteractor) Checkout(_ string) error

Checkout is a fake for Checkout

func (*FakeInteractor) CheckoutNewBranch

func (fi *FakeInteractor) CheckoutNewBranch(_ string) error

CheckoutNewBranch is a fake for CheckoutNewBranch

func (*FakeInteractor) CheckoutPullRequest

func (fi *FakeInteractor) CheckoutPullRequest(_ int) error

CheckoutPullRequest is a fake for CheckoutPullRequest

func (*FakeInteractor) Clean

func (fi *FakeInteractor) Clean() error

Clean is a fake for Clean

func (*FakeInteractor) CommitExists

func (fi *FakeInteractor) CommitExists(_ string) (bool, error)

CommitExists is a fake for CommitExists

func (*FakeInteractor) Config

func (fi *FakeInteractor) Config(_ ...string) error

Config is a fake for Config

func (*FakeInteractor) Diff

func (fi *FakeInteractor) Diff(_, _ string) (changes []string, err error)

Diff is a fake for Diff

func (*FakeInteractor) Directory

func (fi *FakeInteractor) Directory() string

Directory is a fake for Directory

func (*FakeInteractor) Fetch

func (fi *FakeInteractor) Fetch(_ ...string) error

Fetch is a fake for Fetch

func (*FakeInteractor) FetchFromRemote

func (fi *FakeInteractor) FetchFromRemote(_ git.RemoteResolver, _ string) error

FetchFromRemote is a fake for FetchFromRemote

func (*FakeInteractor) FetchRef

func (fi *FakeInteractor) FetchRef(_ string) error

FetchRef is a fake for FetchRef

func (*FakeInteractor) IsDirty

func (fi *FakeInteractor) IsDirty() (bool, error)

IsDirty is a fake for IsDirty

func (*FakeInteractor) Merge

func (fi *FakeInteractor) Merge(_ string) (bool, error)

Merge is a fake for Merge

func (*FakeInteractor) MergeAndCheckout

func (fi *FakeInteractor) MergeAndCheckout(_, _ string, _ ...string) error

MergeAndCheckout is a fake for MergeAndCheckout

func (*FakeInteractor) MergeCommitsExistBetween

func (fi *FakeInteractor) MergeCommitsExistBetween(_, _ string) (bool, error)

MergeCommitsExistBetween is a fake for MergeCommitsExistBetween

func (*FakeInteractor) MergeWithStrategy

func (fi *FakeInteractor) MergeWithStrategy(_, _ string, _ ...git.MergeOpt) (bool, error)

MergeWithStrategy is a fake for MergeWithStrategy

func (*FakeInteractor) ObjectExists

func (fi *FakeInteractor) ObjectExists(_ string) (bool, error)

ObjectExists is a fake for ObjectExists

func (*FakeInteractor) ResetHard

func (fi *FakeInteractor) ResetHard(_ string) error

ResetHard is a fake for ResetHard

func (*FakeInteractor) RevParse

func (fi *FakeInteractor) RevParse(_ string) (string, error)

RevParse is a fake for RevParse

func (*FakeInteractor) RevParseN

func (fi *FakeInteractor) RevParseN(_ []string) (map[string]string, error)

RevParseN is a fake for RevParseN

func (*FakeInteractor) ShowRef

func (fi *FakeInteractor) ShowRef(_ string) (string, error)

ShowRef is a fake for ShowRef

type FakePublisher

type FakePublisher struct{}

FakePublisher fakes the prow git Publisher

func (*FakePublisher) Commit

func (fp *FakePublisher) Commit(_, _ string) error

Commit is a fake for Commit

func (*FakePublisher) PushToCentral

func (fp *FakePublisher) PushToCentral(_ string, _ bool) error

PushToCentral is a fake for PushToCentral

func (*FakePublisher) PushToFork

func (fp *FakePublisher) PushToFork(_ string, _ bool) error

PushToFork is a fake for PushToFork

func (*FakePublisher) PushToNamedFork

func (fp *FakePublisher) PushToNamedFork(_, _ string, _ bool) error

PushToNamedFork is a fake for PushToNamedFork

type FakeRepoClient

type FakeRepoClient struct {
	FakePublisher
	FakeInteractor
}

FakeRepoClient fakes the prow git RepoClient

Jump to

Keyboard shortcuts

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