mocks

package
v2.0.0-...-5e8ce1c Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 2 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 NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Client) Checkout

func (_m *Client) Checkout(revision string, submoduleEnabled bool) error

Checkout provides a mock function with given fields: revision, submoduleEnabled

func (*Client) CommitSHA

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

CommitSHA provides a mock function with given fields:

func (*Client) Fetch

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

Fetch provides a mock function with given fields: revision

func (*Client) Init

func (_m *Client) Init() error

Init provides a mock function with given fields:

func (*Client) IsAnnotatedTag

func (_m *Client) IsAnnotatedTag(_a0 string) bool

IsAnnotatedTag provides a mock function with given fields: _a0

func (*Client) LsFiles

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

LsFiles provides a mock function with given fields: path, enableNewGitFileGlobbing

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) 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) Submodule

func (_m *Client) Submodule() error

Submodule provides a mock function with given fields:

func (*Client) VerifyCommitSignature

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

VerifyCommitSignature provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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