mocks

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) Add

func (_m *Client) Add(path string) error

Add provides a mock function with given fields: path

func (*Client) Branch

func (_m *Client) Branch(sourceBranch string, targetBranch string) error

Branch provides a mock function with given fields: sourceBranch, targetBranch

func (*Client) Checkout

func (_m *Client) Checkout(revision string) error

Checkout provides a mock function with given fields: revision

func (*Client) Commit

func (_m *Client) Commit(pathSpec string, message string, signingKey string) error

Commit provides a mock function with given fields: pathSpec, message, signingKey

func (*Client) CommitSHA

func (_m *Client) CommitSHA() (string, error)

CommitSHA provides a mock function with given fields:

func (*Client) Config

func (_m *Client) Config(username string, email string) error

Config provides a mock function with given fields: username, email

func (*Client) Fetch

func (_m *Client) Fetch() error

Fetch provides a mock function with given fields:

func (*Client) FetchRef

func (_m *Client) FetchRef(ref string) error

FetchRef provides a mock function with given fields: ref

func (*Client) Init

func (_m *Client) Init() error

Init provides a mock function with given fields:

func (*Client) LsFiles

func (_m *Client) LsFiles(path string) ([]string, error)

LsFiles provides a mock function with given fields: path

func (*Client) LsLargeFiles

func (_m *Client) LsLargeFiles() ([]string, error)

LsLargeFiles provides a mock function with given fields:

func (*Client) LsRefs

func (_m *Client) LsRefs() (*git.Refs, error)

LsRefs provides a mock function with given fields:

func (*Client) LsRemote

func (_m *Client) LsRemote(revision string) (string, error)

LsRemote provides a mock function with given fields: revision

func (*Client) Push

func (_m *Client) Push(remote string, branch string, force bool) error

Push provides a mock function with given fields: remote, branch, force

func (*Client) RevisionMetadata

func (_m *Client) RevisionMetadata(revision string) (*git.RevisionMetadata, error)

RevisionMetadata provides a mock function with given fields: revision

func (*Client) Root

func (_m *Client) Root() string

Root provides a mock function with given fields:

func (*Client) SymRefToBranch

func (_m *Client) SymRefToBranch(symRef string) (string, error)

SymRefToBranch provides a mock function with given fields: symRef

func (*Client) VerifyCommitSignature

func (_m *Client) VerifyCommitSignature(_a0 string) (string, error)

VerifyCommitSignature provides a mock function with given fields: _a0

type Creds

type Creds struct {
	mock.Mock
}

Creds is an autogenerated mock type for the Creds type

func (*Creds) Environ

func (_m *Creds) Environ() (io.Closer, []string, error)

Environ provides a mock function with given fields:

Jump to

Keyboard shortcuts

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