mocks

package
v3.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 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 (_mock *Client) ChangedFiles(revision string, targetRevision string) ([]string, error)

ChangedFiles provides a mock function for the type Client

func (*Client) Checkout

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

Checkout provides a mock function for the type Client

func (*Client) CheckoutOrNew

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

CheckoutOrNew provides a mock function for the type Client

func (*Client) CheckoutOrOrphan

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

CheckoutOrOrphan provides a mock function for the type Client

func (*Client) CommitAndPush

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

CommitAndPush provides a mock function for the type Client

func (*Client) CommitSHA

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

CommitSHA provides a mock function for the type Client

func (*Client) EXPECT added in v3.1.0

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) Fetch

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

Fetch provides a mock function for the type Client

func (*Client) Init

func (_mock *Client) Init() error

Init provides a mock function for the type Client

func (*Client) IsAnnotatedTag

func (_mock *Client) IsAnnotatedTag(s string) bool

IsAnnotatedTag provides a mock function for the type Client

func (*Client) IsRevisionPresent

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

IsRevisionPresent provides a mock function for the type Client

func (*Client) LsFiles

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

LsFiles provides a mock function for the type Client

func (*Client) LsLargeFiles

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

LsLargeFiles provides a mock function for the type Client

func (*Client) LsRefs

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

LsRefs provides a mock function for the type Client

func (*Client) LsRemote

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

LsRemote provides a mock function for the type Client

func (*Client) RemoveContents

func (_mock *Client) RemoveContents(paths []string) (string, error)

RemoveContents provides a mock function for the type Client

func (*Client) RevisionMetadata

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

RevisionMetadata provides a mock function for the type Client

func (*Client) Root

func (_mock *Client) Root() string

Root provides a mock function for the type Client

func (*Client) SetAuthor

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

SetAuthor provides a mock function for the type Client

func (*Client) Submodule

func (_mock *Client) Submodule() error

Submodule provides a mock function for the type Client

func (*Client) VerifyCommitSignature

func (_mock *Client) VerifyCommitSignature(s string) (string, error)

VerifyCommitSignature provides a mock function for the type Client

type Client_ChangedFiles_Call added in v3.1.0

type Client_ChangedFiles_Call struct {
	*mock.Call
}

Client_ChangedFiles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChangedFiles'

func (*Client_ChangedFiles_Call) Return added in v3.1.0

func (_c *Client_ChangedFiles_Call) Return(strings []string, err error) *Client_ChangedFiles_Call

func (*Client_ChangedFiles_Call) Run added in v3.1.0

func (_c *Client_ChangedFiles_Call) Run(run func(revision string, targetRevision string)) *Client_ChangedFiles_Call

func (*Client_ChangedFiles_Call) RunAndReturn added in v3.1.0

func (_c *Client_ChangedFiles_Call) RunAndReturn(run func(revision string, targetRevision string) ([]string, error)) *Client_ChangedFiles_Call

type Client_CheckoutOrNew_Call added in v3.1.0

type Client_CheckoutOrNew_Call struct {
	*mock.Call
}

Client_CheckoutOrNew_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckoutOrNew'

func (*Client_CheckoutOrNew_Call) Return added in v3.1.0

func (*Client_CheckoutOrNew_Call) Run added in v3.1.0

func (_c *Client_CheckoutOrNew_Call) Run(run func(branch string, base string, submoduleEnabled bool)) *Client_CheckoutOrNew_Call

func (*Client_CheckoutOrNew_Call) RunAndReturn added in v3.1.0

func (_c *Client_CheckoutOrNew_Call) RunAndReturn(run func(branch string, base string, submoduleEnabled bool) (string, error)) *Client_CheckoutOrNew_Call

type Client_CheckoutOrOrphan_Call added in v3.1.0

type Client_CheckoutOrOrphan_Call struct {
	*mock.Call
}

Client_CheckoutOrOrphan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckoutOrOrphan'

func (*Client_CheckoutOrOrphan_Call) Return added in v3.1.0

func (*Client_CheckoutOrOrphan_Call) Run added in v3.1.0

func (_c *Client_CheckoutOrOrphan_Call) Run(run func(branch string, submoduleEnabled bool)) *Client_CheckoutOrOrphan_Call

func (*Client_CheckoutOrOrphan_Call) RunAndReturn added in v3.1.0

func (_c *Client_CheckoutOrOrphan_Call) RunAndReturn(run func(branch string, submoduleEnabled bool) (string, error)) *Client_CheckoutOrOrphan_Call

type Client_Checkout_Call added in v3.1.0

type Client_Checkout_Call struct {
	*mock.Call
}

Client_Checkout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Checkout'

func (*Client_Checkout_Call) Return added in v3.1.0

func (*Client_Checkout_Call) Run added in v3.1.0

func (_c *Client_Checkout_Call) Run(run func(revision string, submoduleEnabled bool)) *Client_Checkout_Call

func (*Client_Checkout_Call) RunAndReturn added in v3.1.0

func (_c *Client_Checkout_Call) RunAndReturn(run func(revision string, submoduleEnabled bool) (string, error)) *Client_Checkout_Call

type Client_CommitAndPush_Call added in v3.1.0

type Client_CommitAndPush_Call struct {
	*mock.Call
}

Client_CommitAndPush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CommitAndPush'

func (*Client_CommitAndPush_Call) Return added in v3.1.0

func (*Client_CommitAndPush_Call) Run added in v3.1.0

func (_c *Client_CommitAndPush_Call) Run(run func(branch string, message string)) *Client_CommitAndPush_Call

func (*Client_CommitAndPush_Call) RunAndReturn added in v3.1.0

func (_c *Client_CommitAndPush_Call) RunAndReturn(run func(branch string, message string) (string, error)) *Client_CommitAndPush_Call

type Client_CommitSHA_Call added in v3.1.0

type Client_CommitSHA_Call struct {
	*mock.Call
}

Client_CommitSHA_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CommitSHA'

func (*Client_CommitSHA_Call) Return added in v3.1.0

func (*Client_CommitSHA_Call) Run added in v3.1.0

func (_c *Client_CommitSHA_Call) Run(run func()) *Client_CommitSHA_Call

func (*Client_CommitSHA_Call) RunAndReturn added in v3.1.0

func (_c *Client_CommitSHA_Call) RunAndReturn(run func() (string, error)) *Client_CommitSHA_Call

type Client_Expecter added in v3.1.0

type Client_Expecter struct {
	// contains filtered or unexported fields
}

func (*Client_Expecter) ChangedFiles added in v3.1.0

func (_e *Client_Expecter) ChangedFiles(revision interface{}, targetRevision interface{}) *Client_ChangedFiles_Call

ChangedFiles is a helper method to define mock.On call

  • revision string
  • targetRevision string

func (*Client_Expecter) Checkout added in v3.1.0

func (_e *Client_Expecter) Checkout(revision interface{}, submoduleEnabled interface{}) *Client_Checkout_Call

Checkout is a helper method to define mock.On call

  • revision string
  • submoduleEnabled bool

func (*Client_Expecter) CheckoutOrNew added in v3.1.0

func (_e *Client_Expecter) CheckoutOrNew(branch interface{}, base interface{}, submoduleEnabled interface{}) *Client_CheckoutOrNew_Call

CheckoutOrNew is a helper method to define mock.On call

  • branch string
  • base string
  • submoduleEnabled bool

func (*Client_Expecter) CheckoutOrOrphan added in v3.1.0

func (_e *Client_Expecter) CheckoutOrOrphan(branch interface{}, submoduleEnabled interface{}) *Client_CheckoutOrOrphan_Call

CheckoutOrOrphan is a helper method to define mock.On call

  • branch string
  • submoduleEnabled bool

func (*Client_Expecter) CommitAndPush added in v3.1.0

func (_e *Client_Expecter) CommitAndPush(branch interface{}, message interface{}) *Client_CommitAndPush_Call

CommitAndPush is a helper method to define mock.On call

  • branch string
  • message string

func (*Client_Expecter) CommitSHA added in v3.1.0

func (_e *Client_Expecter) CommitSHA() *Client_CommitSHA_Call

CommitSHA is a helper method to define mock.On call

func (*Client_Expecter) Fetch added in v3.1.0

func (_e *Client_Expecter) Fetch(revision interface{}) *Client_Fetch_Call

Fetch is a helper method to define mock.On call

  • revision string

func (*Client_Expecter) Init added in v3.1.0

func (_e *Client_Expecter) Init() *Client_Init_Call

Init is a helper method to define mock.On call

func (*Client_Expecter) IsAnnotatedTag added in v3.1.0

func (_e *Client_Expecter) IsAnnotatedTag(s interface{}) *Client_IsAnnotatedTag_Call

IsAnnotatedTag is a helper method to define mock.On call

  • s string

func (*Client_Expecter) IsRevisionPresent added in v3.1.0

func (_e *Client_Expecter) IsRevisionPresent(revision interface{}) *Client_IsRevisionPresent_Call

IsRevisionPresent is a helper method to define mock.On call

  • revision string

func (*Client_Expecter) LsFiles added in v3.1.0

func (_e *Client_Expecter) LsFiles(path interface{}, enableNewGitFileGlobbing interface{}) *Client_LsFiles_Call

LsFiles is a helper method to define mock.On call

  • path string
  • enableNewGitFileGlobbing bool

func (*Client_Expecter) LsLargeFiles added in v3.1.0

func (_e *Client_Expecter) LsLargeFiles() *Client_LsLargeFiles_Call

LsLargeFiles is a helper method to define mock.On call

func (*Client_Expecter) LsRefs added in v3.1.0

func (_e *Client_Expecter) LsRefs() *Client_LsRefs_Call

LsRefs is a helper method to define mock.On call

func (*Client_Expecter) LsRemote added in v3.1.0

func (_e *Client_Expecter) LsRemote(revision interface{}) *Client_LsRemote_Call

LsRemote is a helper method to define mock.On call

  • revision string

func (*Client_Expecter) RemoveContents added in v3.1.0

func (_e *Client_Expecter) RemoveContents(paths interface{}) *Client_RemoveContents_Call

RemoveContents is a helper method to define mock.On call

  • paths []string

func (*Client_Expecter) RevisionMetadata added in v3.1.0

func (_e *Client_Expecter) RevisionMetadata(revision interface{}) *Client_RevisionMetadata_Call

RevisionMetadata is a helper method to define mock.On call

  • revision string

func (*Client_Expecter) Root added in v3.1.0

func (_e *Client_Expecter) Root() *Client_Root_Call

Root is a helper method to define mock.On call

func (*Client_Expecter) SetAuthor added in v3.1.0

func (_e *Client_Expecter) SetAuthor(name interface{}, email interface{}) *Client_SetAuthor_Call

SetAuthor is a helper method to define mock.On call

  • name string
  • email string

func (*Client_Expecter) Submodule added in v3.1.0

func (_e *Client_Expecter) Submodule() *Client_Submodule_Call

Submodule is a helper method to define mock.On call

func (*Client_Expecter) VerifyCommitSignature added in v3.1.0

func (_e *Client_Expecter) VerifyCommitSignature(s interface{}) *Client_VerifyCommitSignature_Call

VerifyCommitSignature is a helper method to define mock.On call

  • s string

type Client_Fetch_Call added in v3.1.0

type Client_Fetch_Call struct {
	*mock.Call
}

Client_Fetch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fetch'

func (*Client_Fetch_Call) Return added in v3.1.0

func (_c *Client_Fetch_Call) Return(err error) *Client_Fetch_Call

func (*Client_Fetch_Call) Run added in v3.1.0

func (_c *Client_Fetch_Call) Run(run func(revision string)) *Client_Fetch_Call

func (*Client_Fetch_Call) RunAndReturn added in v3.1.0

func (_c *Client_Fetch_Call) RunAndReturn(run func(revision string) error) *Client_Fetch_Call

type Client_Init_Call added in v3.1.0

type Client_Init_Call struct {
	*mock.Call
}

Client_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'

func (*Client_Init_Call) Return added in v3.1.0

func (_c *Client_Init_Call) Return(err error) *Client_Init_Call

func (*Client_Init_Call) Run added in v3.1.0

func (_c *Client_Init_Call) Run(run func()) *Client_Init_Call

func (*Client_Init_Call) RunAndReturn added in v3.1.0

func (_c *Client_Init_Call) RunAndReturn(run func() error) *Client_Init_Call

type Client_IsAnnotatedTag_Call added in v3.1.0

type Client_IsAnnotatedTag_Call struct {
	*mock.Call
}

Client_IsAnnotatedTag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAnnotatedTag'

func (*Client_IsAnnotatedTag_Call) Return added in v3.1.0

func (*Client_IsAnnotatedTag_Call) Run added in v3.1.0

func (*Client_IsAnnotatedTag_Call) RunAndReturn added in v3.1.0

func (_c *Client_IsAnnotatedTag_Call) RunAndReturn(run func(s string) bool) *Client_IsAnnotatedTag_Call

type Client_IsRevisionPresent_Call added in v3.1.0

type Client_IsRevisionPresent_Call struct {
	*mock.Call
}

Client_IsRevisionPresent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsRevisionPresent'

func (*Client_IsRevisionPresent_Call) Return added in v3.1.0

func (*Client_IsRevisionPresent_Call) Run added in v3.1.0

func (*Client_IsRevisionPresent_Call) RunAndReturn added in v3.1.0

func (_c *Client_IsRevisionPresent_Call) RunAndReturn(run func(revision string) bool) *Client_IsRevisionPresent_Call

type Client_LsFiles_Call added in v3.1.0

type Client_LsFiles_Call struct {
	*mock.Call
}

Client_LsFiles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LsFiles'

func (*Client_LsFiles_Call) Return added in v3.1.0

func (_c *Client_LsFiles_Call) Return(strings []string, err error) *Client_LsFiles_Call

func (*Client_LsFiles_Call) Run added in v3.1.0

func (_c *Client_LsFiles_Call) Run(run func(path string, enableNewGitFileGlobbing bool)) *Client_LsFiles_Call

func (*Client_LsFiles_Call) RunAndReturn added in v3.1.0

func (_c *Client_LsFiles_Call) RunAndReturn(run func(path string, enableNewGitFileGlobbing bool) ([]string, error)) *Client_LsFiles_Call

type Client_LsLargeFiles_Call added in v3.1.0

type Client_LsLargeFiles_Call struct {
	*mock.Call
}

Client_LsLargeFiles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LsLargeFiles'

func (*Client_LsLargeFiles_Call) Return added in v3.1.0

func (_c *Client_LsLargeFiles_Call) Return(strings []string, err error) *Client_LsLargeFiles_Call

func (*Client_LsLargeFiles_Call) Run added in v3.1.0

func (*Client_LsLargeFiles_Call) RunAndReturn added in v3.1.0

func (_c *Client_LsLargeFiles_Call) RunAndReturn(run func() ([]string, error)) *Client_LsLargeFiles_Call

type Client_LsRefs_Call added in v3.1.0

type Client_LsRefs_Call struct {
	*mock.Call
}

Client_LsRefs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LsRefs'

func (*Client_LsRefs_Call) Return added in v3.1.0

func (_c *Client_LsRefs_Call) Return(refs *git.Refs, err error) *Client_LsRefs_Call

func (*Client_LsRefs_Call) Run added in v3.1.0

func (_c *Client_LsRefs_Call) Run(run func()) *Client_LsRefs_Call

func (*Client_LsRefs_Call) RunAndReturn added in v3.1.0

func (_c *Client_LsRefs_Call) RunAndReturn(run func() (*git.Refs, error)) *Client_LsRefs_Call

type Client_LsRemote_Call added in v3.1.0

type Client_LsRemote_Call struct {
	*mock.Call
}

Client_LsRemote_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LsRemote'

func (*Client_LsRemote_Call) Return added in v3.1.0

func (*Client_LsRemote_Call) Run added in v3.1.0

func (_c *Client_LsRemote_Call) Run(run func(revision string)) *Client_LsRemote_Call

func (*Client_LsRemote_Call) RunAndReturn added in v3.1.0

func (_c *Client_LsRemote_Call) RunAndReturn(run func(revision string) (string, error)) *Client_LsRemote_Call

type Client_RemoveContents_Call added in v3.1.0

type Client_RemoveContents_Call struct {
	*mock.Call
}

Client_RemoveContents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveContents'

func (*Client_RemoveContents_Call) Return added in v3.1.0

func (*Client_RemoveContents_Call) Run added in v3.1.0

func (_c *Client_RemoveContents_Call) Run(run func(paths []string)) *Client_RemoveContents_Call

func (*Client_RemoveContents_Call) RunAndReturn added in v3.1.0

func (_c *Client_RemoveContents_Call) RunAndReturn(run func(paths []string) (string, error)) *Client_RemoveContents_Call

type Client_RevisionMetadata_Call added in v3.1.0

type Client_RevisionMetadata_Call struct {
	*mock.Call
}

Client_RevisionMetadata_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevisionMetadata'

func (*Client_RevisionMetadata_Call) Return added in v3.1.0

func (*Client_RevisionMetadata_Call) Run added in v3.1.0

func (*Client_RevisionMetadata_Call) RunAndReturn added in v3.1.0

type Client_Root_Call added in v3.1.0

type Client_Root_Call struct {
	*mock.Call
}

Client_Root_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Root'

func (*Client_Root_Call) Return added in v3.1.0

func (_c *Client_Root_Call) Return(s string) *Client_Root_Call

func (*Client_Root_Call) Run added in v3.1.0

func (_c *Client_Root_Call) Run(run func()) *Client_Root_Call

func (*Client_Root_Call) RunAndReturn added in v3.1.0

func (_c *Client_Root_Call) RunAndReturn(run func() string) *Client_Root_Call

type Client_SetAuthor_Call added in v3.1.0

type Client_SetAuthor_Call struct {
	*mock.Call
}

Client_SetAuthor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAuthor'

func (*Client_SetAuthor_Call) Return added in v3.1.0

func (*Client_SetAuthor_Call) Run added in v3.1.0

func (_c *Client_SetAuthor_Call) Run(run func(name string, email string)) *Client_SetAuthor_Call

func (*Client_SetAuthor_Call) RunAndReturn added in v3.1.0

func (_c *Client_SetAuthor_Call) RunAndReturn(run func(name string, email string) (string, error)) *Client_SetAuthor_Call

type Client_Submodule_Call added in v3.1.0

type Client_Submodule_Call struct {
	*mock.Call
}

Client_Submodule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Submodule'

func (*Client_Submodule_Call) Return added in v3.1.0

func (*Client_Submodule_Call) Run added in v3.1.0

func (_c *Client_Submodule_Call) Run(run func()) *Client_Submodule_Call

func (*Client_Submodule_Call) RunAndReturn added in v3.1.0

func (_c *Client_Submodule_Call) RunAndReturn(run func() error) *Client_Submodule_Call

type Client_VerifyCommitSignature_Call added in v3.1.0

type Client_VerifyCommitSignature_Call struct {
	*mock.Call
}

Client_VerifyCommitSignature_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifyCommitSignature'

func (*Client_VerifyCommitSignature_Call) Return added in v3.1.0

func (*Client_VerifyCommitSignature_Call) Run added in v3.1.0

func (*Client_VerifyCommitSignature_Call) RunAndReturn added in v3.1.0

Jump to

Keyboard shortcuts

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