mocks

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInfoMetrics added in v0.6.4

type BuildInfoMetrics struct {
	SetBuildInfoStub func(*time.DateTime)
	// contains filtered or unexported fields
}

func (*BuildInfoMetrics) Invocations added in v0.6.4

func (fake *BuildInfoMetrics) Invocations() map[string][][]interface{}

func (*BuildInfoMetrics) SetBuildInfo added in v0.6.4

func (fake *BuildInfoMetrics) SetBuildInfo(arg1 *time.DateTime)

func (*BuildInfoMetrics) SetBuildInfoArgsForCall added in v0.6.4

func (fake *BuildInfoMetrics) SetBuildInfoArgsForCall(i int) *time.DateTime

func (*BuildInfoMetrics) SetBuildInfoCallCount added in v0.6.4

func (fake *BuildInfoMetrics) SetBuildInfoCallCount() int

func (*BuildInfoMetrics) SetBuildInfoCalls added in v0.6.4

func (fake *BuildInfoMetrics) SetBuildInfoCalls(stub func(*time.DateTime))

type FakeGit

type FakeGit struct {
	CloneStub func(context.Context, git.RemoteURL) error

	ConfigureUserStub func(context.Context, string, string) error

	DeleteFileStub func(context.Context, string) error

	InitStub func(context.Context) error

	ListFilesStub func(context.Context, string) ([]string, error)

	PullStub func(context.Context) error

	ReadFileStub func(context.Context, string) ([]byte, error)

	StatusStub func(context.Context) (git.Status, error)

	WriteFileStub func(context.Context, string, []byte) error
	// contains filtered or unexported fields
}

func (*FakeGit) Clone added in v0.9.0

func (fake *FakeGit) Clone(arg1 context.Context, arg2 git.RemoteURL) error

func (*FakeGit) CloneArgsForCall added in v0.9.0

func (fake *FakeGit) CloneArgsForCall(i int) (context.Context, git.RemoteURL)

func (*FakeGit) CloneCallCount added in v0.9.0

func (fake *FakeGit) CloneCallCount() int

func (*FakeGit) CloneCalls added in v0.9.0

func (fake *FakeGit) CloneCalls(stub func(context.Context, git.RemoteURL) error)

func (*FakeGit) CloneReturns added in v0.9.0

func (fake *FakeGit) CloneReturns(result1 error)

func (*FakeGit) CloneReturnsOnCall added in v0.9.0

func (fake *FakeGit) CloneReturnsOnCall(i int, result1 error)

func (*FakeGit) ConfigureUser added in v0.10.0

func (fake *FakeGit) ConfigureUser(arg1 context.Context, arg2 string, arg3 string) error

func (*FakeGit) ConfigureUserArgsForCall added in v0.10.0

func (fake *FakeGit) ConfigureUserArgsForCall(i int) (context.Context, string, string)

func (*FakeGit) ConfigureUserCallCount added in v0.10.0

func (fake *FakeGit) ConfigureUserCallCount() int

func (*FakeGit) ConfigureUserCalls added in v0.10.0

func (fake *FakeGit) ConfigureUserCalls(stub func(context.Context, string, string) error)

func (*FakeGit) ConfigureUserReturns added in v0.10.0

func (fake *FakeGit) ConfigureUserReturns(result1 error)

func (*FakeGit) ConfigureUserReturnsOnCall added in v0.10.0

func (fake *FakeGit) ConfigureUserReturnsOnCall(i int, result1 error)

func (*FakeGit) DeleteFile

func (fake *FakeGit) DeleteFile(arg1 context.Context, arg2 string) error

func (*FakeGit) DeleteFileArgsForCall

func (fake *FakeGit) DeleteFileArgsForCall(i int) (context.Context, string)

func (*FakeGit) DeleteFileCallCount

func (fake *FakeGit) DeleteFileCallCount() int

func (*FakeGit) DeleteFileCalls

func (fake *FakeGit) DeleteFileCalls(stub func(context.Context, string) error)

func (*FakeGit) DeleteFileReturns

func (fake *FakeGit) DeleteFileReturns(result1 error)

func (*FakeGit) DeleteFileReturnsOnCall

func (fake *FakeGit) DeleteFileReturnsOnCall(i int, result1 error)

func (*FakeGit) Init added in v0.11.0

func (fake *FakeGit) Init(arg1 context.Context) error

func (*FakeGit) InitArgsForCall added in v0.11.0

func (fake *FakeGit) InitArgsForCall(i int) context.Context

func (*FakeGit) InitCallCount added in v0.11.0

func (fake *FakeGit) InitCallCount() int

func (*FakeGit) InitCalls added in v0.11.0

func (fake *FakeGit) InitCalls(stub func(context.Context) error)

func (*FakeGit) InitReturns added in v0.11.0

func (fake *FakeGit) InitReturns(result1 error)

func (*FakeGit) InitReturnsOnCall added in v0.11.0

func (fake *FakeGit) InitReturnsOnCall(i int, result1 error)

func (*FakeGit) Invocations

func (fake *FakeGit) Invocations() map[string][][]interface{}

func (*FakeGit) ListFiles

func (fake *FakeGit) ListFiles(arg1 context.Context, arg2 string) ([]string, error)

func (*FakeGit) ListFilesArgsForCall

func (fake *FakeGit) ListFilesArgsForCall(i int) (context.Context, string)

func (*FakeGit) ListFilesCallCount

func (fake *FakeGit) ListFilesCallCount() int

func (*FakeGit) ListFilesCalls

func (fake *FakeGit) ListFilesCalls(stub func(context.Context, string) ([]string, error))

func (*FakeGit) ListFilesReturns

func (fake *FakeGit) ListFilesReturns(result1 []string, result2 error)

func (*FakeGit) ListFilesReturnsOnCall

func (fake *FakeGit) ListFilesReturnsOnCall(i int, result1 []string, result2 error)

func (*FakeGit) Pull

func (fake *FakeGit) Pull(arg1 context.Context) error

func (*FakeGit) PullArgsForCall

func (fake *FakeGit) PullArgsForCall(i int) context.Context

func (*FakeGit) PullCallCount

func (fake *FakeGit) PullCallCount() int

func (*FakeGit) PullCalls

func (fake *FakeGit) PullCalls(stub func(context.Context) error)

func (*FakeGit) PullReturns

func (fake *FakeGit) PullReturns(result1 error)

func (*FakeGit) PullReturnsOnCall

func (fake *FakeGit) PullReturnsOnCall(i int, result1 error)

func (*FakeGit) ReadFile

func (fake *FakeGit) ReadFile(arg1 context.Context, arg2 string) ([]byte, error)

func (*FakeGit) ReadFileArgsForCall

func (fake *FakeGit) ReadFileArgsForCall(i int) (context.Context, string)

func (*FakeGit) ReadFileCallCount

func (fake *FakeGit) ReadFileCallCount() int

func (*FakeGit) ReadFileCalls

func (fake *FakeGit) ReadFileCalls(stub func(context.Context, string) ([]byte, error))

func (*FakeGit) ReadFileReturns

func (fake *FakeGit) ReadFileReturns(result1 []byte, result2 error)

func (*FakeGit) ReadFileReturnsOnCall

func (fake *FakeGit) ReadFileReturnsOnCall(i int, result1 []byte, result2 error)

func (*FakeGit) Status

func (fake *FakeGit) Status(arg1 context.Context) (git.Status, error)

func (*FakeGit) StatusArgsForCall

func (fake *FakeGit) StatusArgsForCall(i int) context.Context

func (*FakeGit) StatusCallCount

func (fake *FakeGit) StatusCallCount() int

func (*FakeGit) StatusCalls

func (fake *FakeGit) StatusCalls(stub func(context.Context) (git.Status, error))

func (*FakeGit) StatusReturns

func (fake *FakeGit) StatusReturns(result1 git.Status, result2 error)

func (*FakeGit) StatusReturnsOnCall

func (fake *FakeGit) StatusReturnsOnCall(i int, result1 git.Status, result2 error)

func (*FakeGit) WriteFile

func (fake *FakeGit) WriteFile(arg1 context.Context, arg2 string, arg3 []byte) error

func (*FakeGit) WriteFileArgsForCall

func (fake *FakeGit) WriteFileArgsForCall(i int) (context.Context, string, []byte)

func (*FakeGit) WriteFileCallCount

func (fake *FakeGit) WriteFileCallCount() int

func (*FakeGit) WriteFileCalls

func (fake *FakeGit) WriteFileCalls(stub func(context.Context, string, []byte) error)

func (*FakeGit) WriteFileReturns

func (fake *FakeGit) WriteFileReturns(result1 error)

func (*FakeGit) WriteFileReturnsOnCall

func (fake *FakeGit) WriteFileReturnsOnCall(i int, result1 error)

type FakeMetrics added in v0.6.4

type FakeMetrics struct {
	IncGitOperationErrorStub func(string)

	IncHTTPRequestStub func(string, string, string)

	ObserveGitOperationStub func(string, float64)
	// contains filtered or unexported fields
}

func (*FakeMetrics) IncGitOperationError added in v0.6.4

func (fake *FakeMetrics) IncGitOperationError(arg1 string)

func (*FakeMetrics) IncGitOperationErrorArgsForCall added in v0.6.4

func (fake *FakeMetrics) IncGitOperationErrorArgsForCall(i int) string

func (*FakeMetrics) IncGitOperationErrorCallCount added in v0.6.4

func (fake *FakeMetrics) IncGitOperationErrorCallCount() int

func (*FakeMetrics) IncGitOperationErrorCalls added in v0.6.4

func (fake *FakeMetrics) IncGitOperationErrorCalls(stub func(string))

func (*FakeMetrics) IncHTTPRequest added in v0.6.4

func (fake *FakeMetrics) IncHTTPRequest(arg1 string, arg2 string, arg3 string)

func (*FakeMetrics) IncHTTPRequestArgsForCall added in v0.6.4

func (fake *FakeMetrics) IncHTTPRequestArgsForCall(i int) (string, string, string)

func (*FakeMetrics) IncHTTPRequestCallCount added in v0.6.4

func (fake *FakeMetrics) IncHTTPRequestCallCount() int

func (*FakeMetrics) IncHTTPRequestCalls added in v0.6.4

func (fake *FakeMetrics) IncHTTPRequestCalls(stub func(string, string, string))

func (*FakeMetrics) Invocations added in v0.6.4

func (fake *FakeMetrics) Invocations() map[string][][]interface{}

func (*FakeMetrics) ObserveGitOperation added in v0.6.4

func (fake *FakeMetrics) ObserveGitOperation(arg1 string, arg2 float64)

func (*FakeMetrics) ObserveGitOperationArgsForCall added in v0.6.4

func (fake *FakeMetrics) ObserveGitOperationArgsForCall(i int) (string, float64)

func (*FakeMetrics) ObserveGitOperationCallCount added in v0.6.4

func (fake *FakeMetrics) ObserveGitOperationCallCount() int

func (*FakeMetrics) ObserveGitOperationCalls added in v0.6.4

func (fake *FakeMetrics) ObserveGitOperationCalls(stub func(string, float64))

type FakePuller added in v0.5.5

type FakePuller struct {
	RunStub func(context.Context) error
	// contains filtered or unexported fields
}

func (*FakePuller) Invocations added in v0.5.5

func (fake *FakePuller) Invocations() map[string][][]interface{}

func (*FakePuller) Run added in v0.5.5

func (fake *FakePuller) Run(arg1 context.Context) error

func (*FakePuller) RunArgsForCall added in v0.5.5

func (fake *FakePuller) RunArgsForCall(i int) context.Context

func (*FakePuller) RunCallCount added in v0.5.5

func (fake *FakePuller) RunCallCount() int

func (*FakePuller) RunCalls added in v0.5.5

func (fake *FakePuller) RunCalls(stub func(context.Context) error)

func (*FakePuller) RunReturns added in v0.5.5

func (fake *FakePuller) RunReturns(result1 error)

func (*FakePuller) RunReturnsOnCall added in v0.5.5

func (fake *FakePuller) RunReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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