Documentation
¶
Index ¶
- type Client
- func (_mock *Client) AddAndPushNote(ctx context.Context, sha string, namespace string, note string) error
- func (_mock *Client) ChangedFiles(ctx context.Context, revision string, targetRevision string) ([]string, error)
- func (_mock *Client) Checkout(ctx context.Context, revision string, submoduleEnabled bool, cleanState bool) (string, error)
- func (_mock *Client) CheckoutOrNew(ctx context.Context, branch string, base string, submoduleEnabled bool) (string, error)
- func (_mock *Client) CheckoutOrOrphan(ctx context.Context, branch string, submoduleEnabled bool) (string, error)
- func (_mock *Client) CommitAndPush(ctx context.Context, branch string, message string) (string, error)
- func (_mock *Client) CommitSHA(ctx context.Context) (string, error)
- func (_m *Client) EXPECT() *Client_Expecter
- func (_mock *Client) Fetch(ctx context.Context, revision string, depth int64) error
- func (_mock *Client) GetCommitNote(ctx context.Context, sha string, namespace string) (string, error)
- func (_mock *Client) HasFileChanged(ctx context.Context, filePath string) (bool, error)
- func (_mock *Client) Init() error
- func (_mock *Client) IsAnnotatedTag(ctx context.Context, revision string) bool
- func (_mock *Client) IsRevisionPresent(ctx context.Context, revision string) bool
- func (_mock *Client) LsFiles(ctx context.Context, path string, enableNewGitFileGlobbing bool) ([]string, error)
- func (_mock *Client) LsLargeFiles(ctx context.Context) ([]string, error)
- func (_mock *Client) LsRefs() (*git.Refs, error)
- func (_mock *Client) LsRemote(revision string) (string, error)
- func (_mock *Client) LsSignatures(ctx context.Context, revision string, deep bool) ([]git.RevisionSignatureInfo, string, error)
- func (_mock *Client) RemoveContents(ctx context.Context, paths []string) (string, error)
- func (_mock *Client) RepoURL() string
- func (_mock *Client) RevisionMetadata(ctx context.Context, revision string) (*git.RevisionMetadata, error)
- func (_mock *Client) Root() string
- func (_mock *Client) SetAuthor(ctx context.Context, name string, email string) (string, error)
- func (_mock *Client) Submodule(ctx context.Context) error
- func (_mock *Client) VerifyCommitSignature(ctx context.Context, revision string) (string, error)
- type Client_AddAndPushNote_Call
- func (_c *Client_AddAndPushNote_Call) Return(err error) *Client_AddAndPushNote_Call
- func (_c *Client_AddAndPushNote_Call) Run(run func(ctx context.Context, sha string, namespace string, note string)) *Client_AddAndPushNote_Call
- 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
- func (_c *Client_ChangedFiles_Call) Return(strings []string, err error) *Client_ChangedFiles_Call
- func (_c *Client_ChangedFiles_Call) Run(run func(ctx context.Context, revision string, targetRevision string)) *Client_ChangedFiles_Call
- func (_c *Client_ChangedFiles_Call) RunAndReturn(...) *Client_ChangedFiles_Call
- type Client_CheckoutOrNew_Call
- type Client_CheckoutOrOrphan_Call
- func (_c *Client_CheckoutOrOrphan_Call) Return(s string, err error) *Client_CheckoutOrOrphan_Call
- func (_c *Client_CheckoutOrOrphan_Call) Run(run func(ctx context.Context, branch string, submoduleEnabled bool)) *Client_CheckoutOrOrphan_Call
- func (_c *Client_CheckoutOrOrphan_Call) RunAndReturn(...) *Client_CheckoutOrOrphan_Call
- type Client_Checkout_Call
- type Client_CommitAndPush_Call
- func (_c *Client_CommitAndPush_Call) Return(s string, err error) *Client_CommitAndPush_Call
- func (_c *Client_CommitAndPush_Call) Run(run func(ctx context.Context, branch string, message string)) *Client_CommitAndPush_Call
- func (_c *Client_CommitAndPush_Call) RunAndReturn(run func(ctx context.Context, branch string, message string) (string, error)) *Client_CommitAndPush_Call
- type Client_CommitSHA_Call
- type Client_Expecter
- func (_e *Client_Expecter) AddAndPushNote(ctx any, sha any, namespace any, note any) *Client_AddAndPushNote_Call
- func (_e *Client_Expecter) ChangedFiles(ctx any, revision any, targetRevision any) *Client_ChangedFiles_Call
- func (_e *Client_Expecter) Checkout(ctx any, revision any, submoduleEnabled any, cleanState any) *Client_Checkout_Call
- func (_e *Client_Expecter) CheckoutOrNew(ctx any, branch any, base any, submoduleEnabled any) *Client_CheckoutOrNew_Call
- func (_e *Client_Expecter) CheckoutOrOrphan(ctx any, branch any, submoduleEnabled any) *Client_CheckoutOrOrphan_Call
- func (_e *Client_Expecter) CommitAndPush(ctx any, branch any, message any) *Client_CommitAndPush_Call
- func (_e *Client_Expecter) CommitSHA(ctx any) *Client_CommitSHA_Call
- func (_e *Client_Expecter) Fetch(ctx any, revision any, depth any) *Client_Fetch_Call
- func (_e *Client_Expecter) GetCommitNote(ctx any, sha any, namespace any) *Client_GetCommitNote_Call
- func (_e *Client_Expecter) HasFileChanged(ctx any, filePath any) *Client_HasFileChanged_Call
- func (_e *Client_Expecter) Init() *Client_Init_Call
- func (_e *Client_Expecter) IsAnnotatedTag(ctx any, revision any) *Client_IsAnnotatedTag_Call
- func (_e *Client_Expecter) IsRevisionPresent(ctx any, revision any) *Client_IsRevisionPresent_Call
- func (_e *Client_Expecter) LsFiles(ctx any, path any, enableNewGitFileGlobbing any) *Client_LsFiles_Call
- func (_e *Client_Expecter) LsLargeFiles(ctx any) *Client_LsLargeFiles_Call
- func (_e *Client_Expecter) LsRefs() *Client_LsRefs_Call
- func (_e *Client_Expecter) LsRemote(revision any) *Client_LsRemote_Call
- func (_e *Client_Expecter) LsSignatures(ctx any, revision any, deep any) *Client_LsSignatures_Call
- func (_e *Client_Expecter) RemoveContents(ctx any, paths any) *Client_RemoveContents_Call
- func (_e *Client_Expecter) RepoURL() *Client_RepoURL_Call
- func (_e *Client_Expecter) RevisionMetadata(ctx any, revision any) *Client_RevisionMetadata_Call
- func (_e *Client_Expecter) Root() *Client_Root_Call
- func (_e *Client_Expecter) SetAuthor(ctx any, name any, email any) *Client_SetAuthor_Call
- func (_e *Client_Expecter) Submodule(ctx any) *Client_Submodule_Call
- func (_e *Client_Expecter) VerifyCommitSignature(ctx any, revision any) *Client_VerifyCommitSignature_Call
- type Client_Fetch_Call
- func (_c *Client_Fetch_Call) Return(err error) *Client_Fetch_Call
- func (_c *Client_Fetch_Call) Run(run func(ctx context.Context, revision string, depth int64)) *Client_Fetch_Call
- func (_c *Client_Fetch_Call) RunAndReturn(run func(ctx context.Context, revision string, depth int64) error) *Client_Fetch_Call
- type Client_GetCommitNote_Call
- func (_c *Client_GetCommitNote_Call) Return(s string, err error) *Client_GetCommitNote_Call
- func (_c *Client_GetCommitNote_Call) Run(run func(ctx context.Context, sha string, namespace string)) *Client_GetCommitNote_Call
- func (_c *Client_GetCommitNote_Call) RunAndReturn(run func(ctx context.Context, sha string, namespace string) (string, error)) *Client_GetCommitNote_Call
- type Client_HasFileChanged_Call
- func (_c *Client_HasFileChanged_Call) Return(b bool, err error) *Client_HasFileChanged_Call
- func (_c *Client_HasFileChanged_Call) Run(run func(ctx context.Context, filePath string)) *Client_HasFileChanged_Call
- func (_c *Client_HasFileChanged_Call) RunAndReturn(run func(ctx context.Context, filePath string) (bool, error)) *Client_HasFileChanged_Call
- type Client_Init_Call
- type Client_IsAnnotatedTag_Call
- func (_c *Client_IsAnnotatedTag_Call) Return(b bool) *Client_IsAnnotatedTag_Call
- func (_c *Client_IsAnnotatedTag_Call) Run(run func(ctx context.Context, revision string)) *Client_IsAnnotatedTag_Call
- func (_c *Client_IsAnnotatedTag_Call) RunAndReturn(run func(ctx context.Context, revision string) bool) *Client_IsAnnotatedTag_Call
- type Client_IsRevisionPresent_Call
- func (_c *Client_IsRevisionPresent_Call) Return(b bool) *Client_IsRevisionPresent_Call
- func (_c *Client_IsRevisionPresent_Call) Run(run func(ctx context.Context, revision string)) *Client_IsRevisionPresent_Call
- func (_c *Client_IsRevisionPresent_Call) RunAndReturn(run func(ctx context.Context, revision string) bool) *Client_IsRevisionPresent_Call
- type Client_LsFiles_Call
- type Client_LsLargeFiles_Call
- func (_c *Client_LsLargeFiles_Call) Return(strings []string, err error) *Client_LsLargeFiles_Call
- func (_c *Client_LsLargeFiles_Call) Run(run func(ctx context.Context)) *Client_LsLargeFiles_Call
- func (_c *Client_LsLargeFiles_Call) RunAndReturn(run func(ctx context.Context) ([]string, error)) *Client_LsLargeFiles_Call
- type Client_LsRefs_Call
- type Client_LsRemote_Call
- type Client_LsSignatures_Call
- func (_c *Client_LsSignatures_Call) Return(revisionSignatureInfos []git.RevisionSignatureInfo, s string, err error) *Client_LsSignatures_Call
- func (_c *Client_LsSignatures_Call) Run(run func(ctx context.Context, revision string, deep bool)) *Client_LsSignatures_Call
- func (_c *Client_LsSignatures_Call) RunAndReturn(...) *Client_LsSignatures_Call
- type Client_RemoveContents_Call
- func (_c *Client_RemoveContents_Call) Return(s string, err error) *Client_RemoveContents_Call
- func (_c *Client_RemoveContents_Call) Run(run func(ctx context.Context, paths []string)) *Client_RemoveContents_Call
- func (_c *Client_RemoveContents_Call) RunAndReturn(run func(ctx context.Context, paths []string) (string, error)) *Client_RemoveContents_Call
- type Client_RepoURL_Call
- type Client_RevisionMetadata_Call
- func (_c *Client_RevisionMetadata_Call) Return(revisionMetadata *git.RevisionMetadata, err error) *Client_RevisionMetadata_Call
- func (_c *Client_RevisionMetadata_Call) Run(run func(ctx context.Context, revision string)) *Client_RevisionMetadata_Call
- func (_c *Client_RevisionMetadata_Call) RunAndReturn(run func(ctx context.Context, revision string) (*git.RevisionMetadata, error)) *Client_RevisionMetadata_Call
- type Client_Root_Call
- type Client_SetAuthor_Call
- func (_c *Client_SetAuthor_Call) Return(s string, err error) *Client_SetAuthor_Call
- func (_c *Client_SetAuthor_Call) Run(run func(ctx context.Context, name string, email string)) *Client_SetAuthor_Call
- func (_c *Client_SetAuthor_Call) RunAndReturn(run func(ctx context.Context, name string, email string) (string, error)) *Client_SetAuthor_Call
- type Client_Submodule_Call
- type Client_VerifyCommitSignature_Call
- func (_c *Client_VerifyCommitSignature_Call) Return(s string, err error) *Client_VerifyCommitSignature_Call
- func (_c *Client_VerifyCommitSignature_Call) Run(run func(ctx context.Context, revision string)) *Client_VerifyCommitSignature_Call
- func (_c *Client_VerifyCommitSignature_Call) RunAndReturn(run func(ctx context.Context, revision string) (string, error)) *Client_VerifyCommitSignature_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶ added in v1.8.8
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 v1.8.8
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 ¶ added in v1.8.8
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 ¶ added in v1.8.8
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 ¶ added in v1.8.8
func (_mock *Client) CheckoutOrOrphan(ctx context.Context, branch string, submoduleEnabled bool) (string, error)
CheckoutOrOrphan provides a mock function for the type Client
func (*Client) CommitAndPush ¶ added in v1.8.8
func (_mock *Client) CommitAndPush(ctx context.Context, branch string, message string) (string, error)
CommitAndPush provides a mock function for the type Client
func (*Client) EXPECT ¶ added in v1.8.8
func (_m *Client) EXPECT() *Client_Expecter
func (*Client) GetCommitNote ¶ added in v1.8.8
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 v1.8.8
HasFileChanged provides a mock function for the type Client
func (*Client) IsAnnotatedTag ¶ added in v1.8.8
IsAnnotatedTag provides a mock function for the type Client
func (*Client) IsRevisionPresent ¶ added in v1.8.8
IsRevisionPresent provides a mock function for the type Client
func (*Client) LsFiles ¶ added in v0.12.0
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 ¶ added in v1.2.0
LsLargeFiles provides a mock function for the type Client
func (*Client) LsSignatures ¶ added in v1.8.8
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) RemoveContents ¶ added in v1.8.8
RemoveContents provides a mock function for the type Client
func (*Client) RevisionMetadata ¶ added in v1.2.0
func (_mock *Client) RevisionMetadata(ctx context.Context, revision string) (*git.RevisionMetadata, error)
RevisionMetadata provides a mock function for the type Client
type Client_AddAndPushNote_Call ¶ added in v1.8.8
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 v1.8.8
func (_c *Client_AddAndPushNote_Call) Return(err error) *Client_AddAndPushNote_Call
func (*Client_AddAndPushNote_Call) Run ¶ added in v1.8.8
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 v1.8.8
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 v1.8.8
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 v1.8.8
func (_c *Client_ChangedFiles_Call) Return(strings []string, err error) *Client_ChangedFiles_Call
func (*Client_ChangedFiles_Call) Run ¶ added in v1.8.8
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 v1.8.8
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 v1.8.8
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 v1.8.8
func (_c *Client_CheckoutOrNew_Call) Return(s string, err error) *Client_CheckoutOrNew_Call
func (*Client_CheckoutOrNew_Call) Run ¶ added in v1.8.8
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 v1.8.8
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 v1.8.8
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 v1.8.8
func (_c *Client_CheckoutOrOrphan_Call) Return(s string, err error) *Client_CheckoutOrOrphan_Call
func (*Client_CheckoutOrOrphan_Call) Run ¶ added in v1.8.8
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 v1.8.8
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 v1.8.8
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 v1.8.8
func (_c *Client_Checkout_Call) Return(s string, err error) *Client_Checkout_Call
func (*Client_Checkout_Call) Run ¶ added in v1.8.8
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 v1.8.8
func (_c *Client_Checkout_Call) RunAndReturn(run func(ctx context.Context, revision string, submoduleEnabled bool, cleanState bool) (string, error)) *Client_Checkout_Call
type Client_CommitAndPush_Call ¶ added in v1.8.8
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 v1.8.8
func (_c *Client_CommitAndPush_Call) Return(s string, err error) *Client_CommitAndPush_Call
func (*Client_CommitAndPush_Call) Run ¶ added in v1.8.8
func (_c *Client_CommitAndPush_Call) Run(run func(ctx context.Context, branch string, message string)) *Client_CommitAndPush_Call
func (*Client_CommitAndPush_Call) RunAndReturn ¶ added in v1.8.8
func (_c *Client_CommitAndPush_Call) RunAndReturn(run func(ctx context.Context, branch string, message string) (string, error)) *Client_CommitAndPush_Call
type Client_CommitSHA_Call ¶ added in v1.8.8
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 v1.8.8
func (_c *Client_CommitSHA_Call) Return(s string, err error) *Client_CommitSHA_Call
func (*Client_CommitSHA_Call) Run ¶ added in v1.8.8
func (_c *Client_CommitSHA_Call) Run(run func(ctx context.Context)) *Client_CommitSHA_Call
func (*Client_CommitSHA_Call) RunAndReturn ¶ added in v1.8.8
func (_c *Client_CommitSHA_Call) RunAndReturn(run func(ctx context.Context) (string, error)) *Client_CommitSHA_Call
type Client_Expecter ¶ added in v1.8.8
type Client_Expecter struct {
// contains filtered or unexported fields
}
func (*Client_Expecter) AddAndPushNote ¶ added in v1.8.8
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 v1.8.8
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 v1.8.8
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 v1.8.8
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 v1.8.8
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) CommitAndPush ¶ added in v1.8.8
func (_e *Client_Expecter) CommitAndPush(ctx any, branch any, message any) *Client_CommitAndPush_Call
CommitAndPush is a helper method to define mock.On call
- ctx context.Context
- branch string
- message string
func (*Client_Expecter) CommitSHA ¶ added in v1.8.8
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) Fetch ¶ added in v1.8.8
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 v1.8.8
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 v1.8.8
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 v1.8.8
func (_e *Client_Expecter) Init() *Client_Init_Call
Init is a helper method to define mock.On call
func (*Client_Expecter) IsAnnotatedTag ¶ added in v1.8.8
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 v1.8.8
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 v1.8.8
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 v1.8.8
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 v1.8.8
func (_e *Client_Expecter) LsRefs() *Client_LsRefs_Call
LsRefs is a helper method to define mock.On call
func (*Client_Expecter) LsRemote ¶ added in v1.8.8
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 v1.8.8
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) RemoveContents ¶ added in v1.8.8
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 v1.8.8
func (_e *Client_Expecter) RepoURL() *Client_RepoURL_Call
RepoURL is a helper method to define mock.On call
func (*Client_Expecter) RevisionMetadata ¶ added in v1.8.8
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 v1.8.8
func (_e *Client_Expecter) Root() *Client_Root_Call
Root is a helper method to define mock.On call
func (*Client_Expecter) SetAuthor ¶ added in v1.8.8
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 v1.8.8
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 v1.8.8
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 v1.8.8
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 v1.8.8
func (_c *Client_Fetch_Call) Return(err error) *Client_Fetch_Call
func (*Client_Fetch_Call) Run ¶ added in v1.8.8
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 v1.8.8
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 v1.8.8
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 v1.8.8
func (_c *Client_GetCommitNote_Call) Return(s string, err error) *Client_GetCommitNote_Call
func (*Client_GetCommitNote_Call) Run ¶ added in v1.8.8
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 v1.8.8
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 v1.8.8
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 v1.8.8
func (_c *Client_HasFileChanged_Call) Return(b bool, err error) *Client_HasFileChanged_Call
func (*Client_HasFileChanged_Call) Run ¶ added in v1.8.8
func (_c *Client_HasFileChanged_Call) Run(run func(ctx context.Context, filePath string)) *Client_HasFileChanged_Call
func (*Client_HasFileChanged_Call) RunAndReturn ¶ added in v1.8.8
func (_c *Client_HasFileChanged_Call) RunAndReturn(run func(ctx context.Context, filePath string) (bool, error)) *Client_HasFileChanged_Call
type Client_Init_Call ¶ added in v1.8.8
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 v1.8.8
func (_c *Client_Init_Call) Return(err error) *Client_Init_Call
func (*Client_Init_Call) Run ¶ added in v1.8.8
func (_c *Client_Init_Call) Run(run func()) *Client_Init_Call
func (*Client_Init_Call) RunAndReturn ¶ added in v1.8.8
func (_c *Client_Init_Call) RunAndReturn(run func() error) *Client_Init_Call
type Client_IsAnnotatedTag_Call ¶ added in v1.8.8
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 v1.8.8
func (_c *Client_IsAnnotatedTag_Call) Return(b bool) *Client_IsAnnotatedTag_Call
func (*Client_IsAnnotatedTag_Call) Run ¶ added in v1.8.8
func (_c *Client_IsAnnotatedTag_Call) Run(run func(ctx context.Context, revision string)) *Client_IsAnnotatedTag_Call
func (*Client_IsAnnotatedTag_Call) RunAndReturn ¶ added in v1.8.8
func (_c *Client_IsAnnotatedTag_Call) RunAndReturn(run func(ctx context.Context, revision string) bool) *Client_IsAnnotatedTag_Call
type Client_IsRevisionPresent_Call ¶ added in v1.8.8
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 v1.8.8
func (_c *Client_IsRevisionPresent_Call) Return(b bool) *Client_IsRevisionPresent_Call
func (*Client_IsRevisionPresent_Call) Run ¶ added in v1.8.8
func (_c *Client_IsRevisionPresent_Call) Run(run func(ctx context.Context, revision string)) *Client_IsRevisionPresent_Call
func (*Client_IsRevisionPresent_Call) RunAndReturn ¶ added in v1.8.8
func (_c *Client_IsRevisionPresent_Call) RunAndReturn(run func(ctx context.Context, revision string) bool) *Client_IsRevisionPresent_Call
type Client_LsFiles_Call ¶ added in v1.8.8
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 v1.8.8
func (_c *Client_LsFiles_Call) Return(strings []string, err error) *Client_LsFiles_Call
func (*Client_LsFiles_Call) Run ¶ added in v1.8.8
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 v1.8.8
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 v1.8.8
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 v1.8.8
func (_c *Client_LsLargeFiles_Call) Return(strings []string, err error) *Client_LsLargeFiles_Call
func (*Client_LsLargeFiles_Call) Run ¶ added in v1.8.8
func (_c *Client_LsLargeFiles_Call) Run(run func(ctx context.Context)) *Client_LsLargeFiles_Call
func (*Client_LsLargeFiles_Call) RunAndReturn ¶ added in v1.8.8
func (_c *Client_LsLargeFiles_Call) RunAndReturn(run func(ctx context.Context) ([]string, error)) *Client_LsLargeFiles_Call
type Client_LsRefs_Call ¶ added in v1.8.8
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 v1.8.8
func (_c *Client_LsRefs_Call) Return(refs *git.Refs, err error) *Client_LsRefs_Call
func (*Client_LsRefs_Call) Run ¶ added in v1.8.8
func (_c *Client_LsRefs_Call) Run(run func()) *Client_LsRefs_Call
func (*Client_LsRefs_Call) RunAndReturn ¶ added in v1.8.8
func (_c *Client_LsRefs_Call) RunAndReturn(run func() (*git.Refs, error)) *Client_LsRefs_Call
type Client_LsRemote_Call ¶ added in v1.8.8
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 v1.8.8
func (_c *Client_LsRemote_Call) Return(s string, err error) *Client_LsRemote_Call
func (*Client_LsRemote_Call) Run ¶ added in v1.8.8
func (_c *Client_LsRemote_Call) Run(run func(revision string)) *Client_LsRemote_Call
func (*Client_LsRemote_Call) RunAndReturn ¶ added in v1.8.8
func (_c *Client_LsRemote_Call) RunAndReturn(run func(revision string) (string, error)) *Client_LsRemote_Call
type Client_LsSignatures_Call ¶ added in v1.8.8
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 v1.8.8
func (_c *Client_LsSignatures_Call) Return(revisionSignatureInfos []git.RevisionSignatureInfo, s string, err error) *Client_LsSignatures_Call
func (*Client_LsSignatures_Call) Run ¶ added in v1.8.8
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 v1.8.8
func (_c *Client_LsSignatures_Call) RunAndReturn(run func(ctx context.Context, revision string, deep bool) ([]git.RevisionSignatureInfo, string, error)) *Client_LsSignatures_Call
type Client_RemoveContents_Call ¶ added in v1.8.8
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 v1.8.8
func (_c *Client_RemoveContents_Call) Return(s string, err error) *Client_RemoveContents_Call
func (*Client_RemoveContents_Call) Run ¶ added in v1.8.8
func (_c *Client_RemoveContents_Call) Run(run func(ctx context.Context, paths []string)) *Client_RemoveContents_Call
func (*Client_RemoveContents_Call) RunAndReturn ¶ added in v1.8.8
func (_c *Client_RemoveContents_Call) RunAndReturn(run func(ctx context.Context, paths []string) (string, error)) *Client_RemoveContents_Call
type Client_RepoURL_Call ¶ added in v1.8.8
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 v1.8.8
func (_c *Client_RepoURL_Call) Return(s string) *Client_RepoURL_Call
func (*Client_RepoURL_Call) Run ¶ added in v1.8.8
func (_c *Client_RepoURL_Call) Run(run func()) *Client_RepoURL_Call
func (*Client_RepoURL_Call) RunAndReturn ¶ added in v1.8.8
func (_c *Client_RepoURL_Call) RunAndReturn(run func() string) *Client_RepoURL_Call
type Client_RevisionMetadata_Call ¶ added in v1.8.8
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 v1.8.8
func (_c *Client_RevisionMetadata_Call) Return(revisionMetadata *git.RevisionMetadata, err error) *Client_RevisionMetadata_Call
func (*Client_RevisionMetadata_Call) Run ¶ added in v1.8.8
func (_c *Client_RevisionMetadata_Call) Run(run func(ctx context.Context, revision string)) *Client_RevisionMetadata_Call
func (*Client_RevisionMetadata_Call) RunAndReturn ¶ added in v1.8.8
func (_c *Client_RevisionMetadata_Call) RunAndReturn(run func(ctx context.Context, revision string) (*git.RevisionMetadata, error)) *Client_RevisionMetadata_Call
type Client_Root_Call ¶ added in v1.8.8
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 v1.8.8
func (_c *Client_Root_Call) Return(s string) *Client_Root_Call
func (*Client_Root_Call) Run ¶ added in v1.8.8
func (_c *Client_Root_Call) Run(run func()) *Client_Root_Call
func (*Client_Root_Call) RunAndReturn ¶ added in v1.8.8
func (_c *Client_Root_Call) RunAndReturn(run func() string) *Client_Root_Call
type Client_SetAuthor_Call ¶ added in v1.8.8
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 v1.8.8
func (_c *Client_SetAuthor_Call) Return(s string, err error) *Client_SetAuthor_Call
func (*Client_SetAuthor_Call) Run ¶ added in v1.8.8
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 v1.8.8
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 v1.8.8
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 v1.8.8
func (_c *Client_Submodule_Call) Return(err error) *Client_Submodule_Call
func (*Client_Submodule_Call) Run ¶ added in v1.8.8
func (_c *Client_Submodule_Call) Run(run func(ctx context.Context)) *Client_Submodule_Call
func (*Client_Submodule_Call) RunAndReturn ¶ added in v1.8.8
func (_c *Client_Submodule_Call) RunAndReturn(run func(ctx context.Context) error) *Client_Submodule_Call
type Client_VerifyCommitSignature_Call ¶ added in v1.8.8
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 v1.8.8
func (_c *Client_VerifyCommitSignature_Call) Return(s string, err error) *Client_VerifyCommitSignature_Call
func (*Client_VerifyCommitSignature_Call) Run ¶ added in v1.8.8
func (_c *Client_VerifyCommitSignature_Call) Run(run func(ctx context.Context, revision string)) *Client_VerifyCommitSignature_Call
func (*Client_VerifyCommitSignature_Call) RunAndReturn ¶ added in v1.8.8
func (_c *Client_VerifyCommitSignature_Call) RunAndReturn(run func(ctx context.Context, revision string) (string, error)) *Client_VerifyCommitSignature_Call