Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v3.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 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) ChangedFiles

func (_m *Client) ChangedFiles(revision string, targetRevision string) ([]string, error)

ChangedFiles provides a mock function with given fields: revision, targetRevision

func (*Client) Checkout

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

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

func (*Client) CheckoutOrNew

func (_m *Client) CheckoutOrNew(branch string, base string, submoduleEnabled bool) (string, error)

CheckoutOrNew provides a mock function with given fields: branch, base, submoduleEnabled

func (*Client) CheckoutOrOrphan

func (_m *Client) CheckoutOrOrphan(branch string, submoduleEnabled bool) (string, error)

CheckoutOrOrphan provides a mock function with given fields: branch, submoduleEnabled

func (*Client) CommitAndPush

func (_m *Client) CommitAndPush(branch string, message string) (string, error)

CommitAndPush provides a mock function with given fields: branch, message

func (*Client) CommitSHA

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

CommitSHA provides a mock function with no 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 no fields

func (*Client) IsAnnotatedTag

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

IsAnnotatedTag provides a mock function with given fields: _a0

func (*Client) IsRevisionPresent

func (_m *Client) IsRevisionPresent(revision string) bool

IsRevisionPresent provides a mock function with given fields: revision

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 no fields

func (*Client) LsRefs

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

LsRefs provides a mock function with no fields

func (*Client) LsRemote

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

LsRemote provides a mock function with given fields: revision

func (*Client) RemoveContents

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

RemoveContents provides a mock function with no fields

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 no fields

func (*Client) SetAuthor

func (_m *Client) SetAuthor(name string, email string) (string, error)

SetAuthor provides a mock function with given fields: name, email

func (*Client) Submodule

func (_m *Client) Submodule() error

Submodule provides a mock function with no 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