mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	mock.Mock
}

Source is an autogenerated mock type for the Source type

func NewSource

func NewSource(t interface {
	mock.TestingT
	Cleanup(func())
}) *Source

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) Artifact

func (_mock *Source) Artifact(ctx context.Context, artifact string, path string) error

Artifact provides a mock function for the type Source

func (*Source) EXPECT

func (_m *Source) EXPECT() *Source_Expecter

func (*Source) Security

func (_mock *Source) Security(path string) error

Security provides a mock function for the type Source

func (*Source) SourceCode

func (_mock *Source) SourceCode(ctx context.Context, repository string, path string, revision string, submodule bool) error

SourceCode provides a mock function for the type Source

type Source_Artifact_Call

type Source_Artifact_Call struct {
	*mock.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 (*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

type Source_Security_Call struct {
	*mock.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 (*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

type Source_SourceCode_Call struct {
	*mock.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 (*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

Jump to

Keyboard shortcuts

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