Documentation
¶
Index ¶
- type Source
- type Source_Artifact_Call
- func (_c *Source_Artifact_Call) Return(err error) *Source_Artifact_Call
- func (_c *Source_Artifact_Call) Run(run func(ctx context.Context, artifact string, path string)) *Source_Artifact_Call
- func (_c *Source_Artifact_Call) RunAndReturn(run func(ctx context.Context, artifact string, path string) error) *Source_Artifact_Call
- type Source_Expecter
- type Source_Security_Call
- type Source_SourceCode_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
Source is an autogenerated mock type for the Source type
func NewSource ¶
NewSource creates a new instance of Source. 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 (*Source) EXPECT ¶
func (_m *Source) EXPECT() *Source_Expecter
type Source_Artifact_Call ¶
Source_Artifact_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Artifact'
func (*Source_Artifact_Call) Return ¶
func (_c *Source_Artifact_Call) Return(err error) *Source_Artifact_Call
func (*Source_Artifact_Call) Run ¶
func (_c *Source_Artifact_Call) Run(run func(ctx context.Context, artifact string, path string)) *Source_Artifact_Call
func (*Source_Artifact_Call) RunAndReturn ¶
func (_c *Source_Artifact_Call) RunAndReturn(run func(ctx context.Context, artifact string, path string) error) *Source_Artifact_Call
type Source_Expecter ¶
type Source_Expecter struct {
// contains filtered or unexported fields
}
func (*Source_Expecter) Artifact ¶
func (_e *Source_Expecter) Artifact(ctx any, artifact any, path any) *Source_Artifact_Call
Artifact is a helper method to define mock.On call
- ctx context.Context
- artifact string
- path string
func (*Source_Expecter) Security ¶
func (_e *Source_Expecter) Security(path any) *Source_Security_Call
Security is a helper method to define mock.On call
- path string
func (*Source_Expecter) SourceCode ¶
func (_e *Source_Expecter) SourceCode(ctx any, repository any, path any, revision any, submodule any) *Source_SourceCode_Call
SourceCode is a helper method to define mock.On call
- ctx context.Context
- repository string
- path string
- revision string
- submodule bool
type Source_Security_Call ¶
Source_Security_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Security'
func (*Source_Security_Call) Return ¶
func (_c *Source_Security_Call) Return(err error) *Source_Security_Call
func (*Source_Security_Call) Run ¶
func (_c *Source_Security_Call) Run(run func(path string)) *Source_Security_Call
func (*Source_Security_Call) RunAndReturn ¶
func (_c *Source_Security_Call) RunAndReturn(run func(path string) error) *Source_Security_Call
type Source_SourceCode_Call ¶
Source_SourceCode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SourceCode'
func (*Source_SourceCode_Call) Return ¶
func (_c *Source_SourceCode_Call) Return(err error) *Source_SourceCode_Call
func (*Source_SourceCode_Call) Run ¶
func (_c *Source_SourceCode_Call) Run(run func(ctx context.Context, repository string, path string, revision string, submodule bool)) *Source_SourceCode_Call
func (*Source_SourceCode_Call) RunAndReturn ¶
func (_c *Source_SourceCode_Call) RunAndReturn(run func(ctx context.Context, repository string, path string, revision string, submodule bool) error) *Source_SourceCode_Call