mocks

package
v3.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) AddAndPushNote added in v3.3.0

func (_mock *Client) AddAndPushNote(ctx context.Context, sha string, namespace string, note string) error

AddAndPushNote provides a mock function for the type Client

func (*Client) ChangedFiles

func (_mock *Client) ChangedFiles(ctx context.Context, revision string, targetRevision string) ([]string, error)

ChangedFiles provides a mock function for the type Client

func (*Client) Checkout

func (_mock *Client) Checkout(ctx context.Context, revision string, submoduleEnabled bool, cleanState bool) (string, error)

Checkout provides a mock function for the type Client

func (*Client) CheckoutOrNew

func (_mock *Client) CheckoutOrNew(ctx context.Context, branch string, base string, submoduleEnabled bool) (string, error)

CheckoutOrNew provides a mock function for the type Client

func (*Client) CheckoutOrOrphan

func (_mock *Client) CheckoutOrOrphan(ctx context.Context, branch string, submoduleEnabled bool) (string, error)

CheckoutOrOrphan provides a mock function for the type Client

func (*Client) Commit added in v3.6.0

func (_mock *Client) Commit(message string, signingKeyID string) (string, error)

Commit provides a mock function for the type Client

func (*Client) CommitSHA

func (_mock *Client) CommitSHA(ctx context.Context) (string, error)

CommitSHA provides a mock function for the type Client

func (*Client) CommitSignatureStatus added in v3.6.0

func (_mock *Client) CommitSignatureStatus(ctx context.Context, revision string) (string, string, error)

CommitSignatureStatus 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(ctx context.Context, revision string, depth int64) error

Fetch provides a mock function for the type Client

func (*Client) GetCommitNote added in v3.3.0

func (_mock *Client) GetCommitNote(ctx context.Context, sha string, namespace string) (string, error)

GetCommitNote provides a mock function for the type Client

func (*Client) HasFileChanged added in v3.3.0

func (_mock *Client) HasFileChanged(ctx context.Context, filePath string) (bool, error)

HasFileChanged 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(ctx context.Context, revision string) bool

IsAnnotatedTag provides a mock function for the type Client

func (*Client) IsRevisionPresent

func (_mock *Client) IsRevisionPresent(ctx context.Context, revision string) bool

IsRevisionPresent provides a mock function for the type Client

func (*Client) LsFiles

func (_mock *Client) LsFiles(ctx context.Context, path string, enableNewGitFileGlobbing bool) ([]string, error)

LsFiles provides a mock function for the type Client

func (*Client) LsLargeFiles

func (_mock *Client) LsLargeFiles(ctx context.Context) ([]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) LsSignatures added in v3.5.0

func (_mock *Client) LsSignatures(ctx context.Context, revision string, deep bool) ([]git.RevisionSignatureInfo, string, error)

LsSignatures provides a mock function for the type Client

func (*Client) Push added in v3.6.0

func (_mock *Client) Push(branch string) (string, error)

Push provides a mock function for the type Client

func (*Client) RemoveContents

func (_mock *Client) RemoveContents(ctx context.Context, paths []string) (string, error)

RemoveContents provides a mock function for the type Client

func (*Client) RepoURL added in v3.5.0

func (_mock *Client) RepoURL() string

RepoURL provides a mock function for the type Client

func (*Client) RevisionMetadata

func (_mock *Client) RevisionMetadata(ctx context.Context, 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(ctx context.Context, name string, email string) (string, error)

SetAuthor provides a mock function for the type Client

func (*Client) Submodule

func (_mock *Client) Submodule(ctx context.Context) error

Submodule provides a mock function for the type Client

func (*Client) VerifyCommitSignature

func (_mock *Client) VerifyCommitSignature(ctx context.Context, revision string) (string, error)

VerifyCommitSignature provides a mock function for the type Client

type Client_AddAndPushNote_Call added in v3.3.0

type Client_AddAndPushNote_Call struct {
	*mock.Call
}

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

func (*Client_AddAndPushNote_Call) Return added in v3.3.0

func (*Client_AddAndPushNote_Call) Run added in v3.3.0

func (_c *Client_AddAndPushNote_Call) Run(run func(ctx context.Context, sha string, namespace string, note string)) *Client_AddAndPushNote_Call

func (*Client_AddAndPushNote_Call) RunAndReturn added in v3.3.0

func (_c *Client_AddAndPushNote_Call) RunAndReturn(run func(ctx context.Context, sha string, namespace string, note string) error) *Client_AddAndPushNote_Call

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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, revision string, submoduleEnabled bool, cleanState bool)) *Client_Checkout_Call

func (*Client_Checkout_Call) RunAndReturn added in v3.1.0

func (_c *Client_Checkout_Call) RunAndReturn(run func(ctx context.Context, revision string, submoduleEnabled bool, cleanState bool) (string, error)) *Client_Checkout_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 (*Client_CommitSHA_Call) RunAndReturn added in v3.1.0

func (_c *Client_CommitSHA_Call) RunAndReturn(run func(ctx context.Context) (string, error)) *Client_CommitSHA_Call

type Client_CommitSignatureStatus_Call added in v3.6.0

type Client_CommitSignatureStatus_Call struct {
	*mock.Call
}

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

func (*Client_CommitSignatureStatus_Call) Return added in v3.6.0

func (*Client_CommitSignatureStatus_Call) Run added in v3.6.0

func (*Client_CommitSignatureStatus_Call) RunAndReturn added in v3.6.0

type Client_Commit_Call added in v3.6.0

type Client_Commit_Call struct {
	*mock.Call
}

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

func (*Client_Commit_Call) Return added in v3.6.0

func (_c *Client_Commit_Call) Return(s string, err error) *Client_Commit_Call

func (*Client_Commit_Call) Run added in v3.6.0

func (_c *Client_Commit_Call) Run(run func(message string, signingKeyID string)) *Client_Commit_Call

func (*Client_Commit_Call) RunAndReturn added in v3.6.0

func (_c *Client_Commit_Call) RunAndReturn(run func(message string, signingKeyID string) (string, error)) *Client_Commit_Call

type Client_Expecter added in v3.1.0

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

func (*Client_Expecter) AddAndPushNote added in v3.3.0

func (_e *Client_Expecter) AddAndPushNote(ctx any, sha any, namespace any, note any) *Client_AddAndPushNote_Call

AddAndPushNote is a helper method to define mock.On call

  • ctx context.Context
  • sha string
  • namespace string
  • note string

func (*Client_Expecter) ChangedFiles added in v3.1.0

func (_e *Client_Expecter) ChangedFiles(ctx any, revision any, targetRevision any) *Client_ChangedFiles_Call

ChangedFiles is a helper method to define mock.On call

  • ctx context.Context
  • revision string
  • targetRevision string

func (*Client_Expecter) Checkout added in v3.1.0

func (_e *Client_Expecter) Checkout(ctx any, revision any, submoduleEnabled any, cleanState any) *Client_Checkout_Call

Checkout is a helper method to define mock.On call

  • ctx context.Context
  • revision string
  • submoduleEnabled bool
  • cleanState bool

func (*Client_Expecter) CheckoutOrNew added in v3.1.0

func (_e *Client_Expecter) CheckoutOrNew(ctx any, branch any, base any, submoduleEnabled any) *Client_CheckoutOrNew_Call

CheckoutOrNew is a helper method to define mock.On call

  • ctx context.Context
  • branch string
  • base string
  • submoduleEnabled bool

func (*Client_Expecter) CheckoutOrOrphan added in v3.1.0

func (_e *Client_Expecter) CheckoutOrOrphan(ctx any, branch any, submoduleEnabled any) *Client_CheckoutOrOrphan_Call

CheckoutOrOrphan is a helper method to define mock.On call

  • ctx context.Context
  • branch string
  • submoduleEnabled bool

func (*Client_Expecter) Commit added in v3.6.0

func (_e *Client_Expecter) Commit(message any, signingKeyID any) *Client_Commit_Call

Commit is a helper method to define mock.On call

  • message string
  • signingKeyID string

func (*Client_Expecter) CommitSHA added in v3.1.0

func (_e *Client_Expecter) CommitSHA(ctx any) *Client_CommitSHA_Call

CommitSHA is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) CommitSignatureStatus added in v3.6.0

func (_e *Client_Expecter) CommitSignatureStatus(ctx any, revision any) *Client_CommitSignatureStatus_Call

CommitSignatureStatus is a helper method to define mock.On call

  • ctx context.Context
  • revision string

func (*Client_Expecter) Fetch added in v3.1.0

func (_e *Client_Expecter) Fetch(ctx any, revision any, depth any) *Client_Fetch_Call

Fetch is a helper method to define mock.On call

  • ctx context.Context
  • revision string
  • depth int64

func (*Client_Expecter) GetCommitNote added in v3.3.0

func (_e *Client_Expecter) GetCommitNote(ctx any, sha any, namespace any) *Client_GetCommitNote_Call

GetCommitNote is a helper method to define mock.On call

  • ctx context.Context
  • sha string
  • namespace string

func (*Client_Expecter) HasFileChanged added in v3.3.0

func (_e *Client_Expecter) HasFileChanged(ctx any, filePath any) *Client_HasFileChanged_Call

HasFileChanged is a helper method to define mock.On call

  • ctx context.Context
  • filePath 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(ctx any, revision any) *Client_IsAnnotatedTag_Call

IsAnnotatedTag is a helper method to define mock.On call

  • ctx context.Context
  • revision string

func (*Client_Expecter) IsRevisionPresent added in v3.1.0

func (_e *Client_Expecter) IsRevisionPresent(ctx any, revision any) *Client_IsRevisionPresent_Call

IsRevisionPresent is a helper method to define mock.On call

  • ctx context.Context
  • revision string

func (*Client_Expecter) LsFiles added in v3.1.0

func (_e *Client_Expecter) LsFiles(ctx any, path any, enableNewGitFileGlobbing any) *Client_LsFiles_Call

LsFiles is a helper method to define mock.On call

  • ctx context.Context
  • path string
  • enableNewGitFileGlobbing bool

func (*Client_Expecter) LsLargeFiles added in v3.1.0

func (_e *Client_Expecter) LsLargeFiles(ctx any) *Client_LsLargeFiles_Call

LsLargeFiles is a helper method to define mock.On call

  • ctx context.Context

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 any) *Client_LsRemote_Call

LsRemote is a helper method to define mock.On call

  • revision string

func (*Client_Expecter) LsSignatures added in v3.5.0

func (_e *Client_Expecter) LsSignatures(ctx any, revision any, deep any) *Client_LsSignatures_Call

LsSignatures is a helper method to define mock.On call

  • ctx context.Context
  • revision string
  • deep bool

func (*Client_Expecter) Push added in v3.6.0

func (_e *Client_Expecter) Push(branch any) *Client_Push_Call

Push is a helper method to define mock.On call

  • branch string

func (*Client_Expecter) RemoveContents added in v3.1.0

func (_e *Client_Expecter) RemoveContents(ctx any, paths any) *Client_RemoveContents_Call

RemoveContents is a helper method to define mock.On call

  • ctx context.Context
  • paths []string

func (*Client_Expecter) RepoURL added in v3.5.0

func (_e *Client_Expecter) RepoURL() *Client_RepoURL_Call

RepoURL is a helper method to define mock.On call

func (*Client_Expecter) RevisionMetadata added in v3.1.0

func (_e *Client_Expecter) RevisionMetadata(ctx any, revision any) *Client_RevisionMetadata_Call

RevisionMetadata is a helper method to define mock.On call

  • ctx context.Context
  • 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(ctx any, name any, email any) *Client_SetAuthor_Call

SetAuthor is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • email string

func (*Client_Expecter) Submodule added in v3.1.0

func (_e *Client_Expecter) Submodule(ctx any) *Client_Submodule_Call

Submodule is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) VerifyCommitSignature added in v3.1.0

func (_e *Client_Expecter) VerifyCommitSignature(ctx any, revision any) *Client_VerifyCommitSignature_Call

VerifyCommitSignature is a helper method to define mock.On call

  • ctx context.Context
  • revision 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(ctx context.Context, revision string, depth int64)) *Client_Fetch_Call

func (*Client_Fetch_Call) RunAndReturn added in v3.1.0

func (_c *Client_Fetch_Call) RunAndReturn(run func(ctx context.Context, revision string, depth int64) error) *Client_Fetch_Call

type Client_GetCommitNote_Call added in v3.3.0

type Client_GetCommitNote_Call struct {
	*mock.Call
}

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

func (*Client_GetCommitNote_Call) Return added in v3.3.0

func (*Client_GetCommitNote_Call) Run added in v3.3.0

func (_c *Client_GetCommitNote_Call) Run(run func(ctx context.Context, sha string, namespace string)) *Client_GetCommitNote_Call

func (*Client_GetCommitNote_Call) RunAndReturn added in v3.3.0

func (_c *Client_GetCommitNote_Call) RunAndReturn(run func(ctx context.Context, sha string, namespace string) (string, error)) *Client_GetCommitNote_Call

type Client_HasFileChanged_Call added in v3.3.0

type Client_HasFileChanged_Call struct {
	*mock.Call
}

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

func (*Client_HasFileChanged_Call) Return added in v3.3.0

func (*Client_HasFileChanged_Call) Run added in v3.3.0

func (*Client_HasFileChanged_Call) RunAndReturn added in v3.3.0

func (_c *Client_HasFileChanged_Call) RunAndReturn(run func(ctx context.Context, filePath string) (bool, error)) *Client_HasFileChanged_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(ctx context.Context, revision 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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context) ([]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_LsSignatures_Call added in v3.5.0

type Client_LsSignatures_Call struct {
	*mock.Call
}

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

func (*Client_LsSignatures_Call) Return added in v3.5.0

func (_c *Client_LsSignatures_Call) Return(revisionSignatureInfos []git.RevisionSignatureInfo, s string, err error) *Client_LsSignatures_Call

func (*Client_LsSignatures_Call) Run added in v3.5.0

func (_c *Client_LsSignatures_Call) Run(run func(ctx context.Context, revision string, deep bool)) *Client_LsSignatures_Call

func (*Client_LsSignatures_Call) RunAndReturn added in v3.5.0

func (_c *Client_LsSignatures_Call) RunAndReturn(run func(ctx context.Context, revision string, deep bool) ([]git.RevisionSignatureInfo, string, error)) *Client_LsSignatures_Call

type Client_Push_Call added in v3.6.0

type Client_Push_Call struct {
	*mock.Call
}

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

func (*Client_Push_Call) Return added in v3.6.0

func (_c *Client_Push_Call) Return(s string, err error) *Client_Push_Call

func (*Client_Push_Call) Run added in v3.6.0

func (_c *Client_Push_Call) Run(run func(branch string)) *Client_Push_Call

func (*Client_Push_Call) RunAndReturn added in v3.6.0

func (_c *Client_Push_Call) RunAndReturn(run func(branch string) (string, error)) *Client_Push_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 (*Client_RemoveContents_Call) RunAndReturn added in v3.1.0

func (_c *Client_RemoveContents_Call) RunAndReturn(run func(ctx context.Context, paths []string) (string, error)) *Client_RemoveContents_Call

type Client_RepoURL_Call added in v3.5.0

type Client_RepoURL_Call struct {
	*mock.Call
}

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

func (*Client_RepoURL_Call) Return added in v3.5.0

func (*Client_RepoURL_Call) Run added in v3.5.0

func (_c *Client_RepoURL_Call) Run(run func()) *Client_RepoURL_Call

func (*Client_RepoURL_Call) RunAndReturn added in v3.5.0

func (_c *Client_RepoURL_Call) RunAndReturn(run func() string) *Client_RepoURL_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(ctx context.Context, 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(ctx context.Context, 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 (*Client_Submodule_Call) RunAndReturn added in v3.1.0

func (_c *Client_Submodule_Call) RunAndReturn(run func(ctx context.Context) 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