mocks

package
v3.2.7 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies struct {
	mock.Mock
}

Dependencies is an autogenerated mock type for the Dependencies type

func NewDependencies

func NewDependencies(t interface {
	mock.TestingT
	Cleanup(func())
}) *Dependencies

NewDependencies creates a new instance of Dependencies. 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 (*Dependencies) AddHydrationQueueItem

func (_mock *Dependencies) AddHydrationQueueItem(key types.HydrationQueueKey)

AddHydrationQueueItem provides a mock function for the type Dependencies

func (*Dependencies) EXPECT

func (_m *Dependencies) EXPECT() *Dependencies_Expecter

func (*Dependencies) GetHydratorCommitMessageTemplate

func (_mock *Dependencies) GetHydratorCommitMessageTemplate() (string, error)

GetHydratorCommitMessageTemplate provides a mock function for the type Dependencies

func (*Dependencies) GetProcessableAppProj

func (_mock *Dependencies) GetProcessableAppProj(app *v1alpha1.Application) (*v1alpha1.AppProject, error)

GetProcessableAppProj provides a mock function for the type Dependencies

func (*Dependencies) GetProcessableApps

func (_mock *Dependencies) GetProcessableApps() (*v1alpha1.ApplicationList, error)

GetProcessableApps provides a mock function for the type Dependencies

func (*Dependencies) GetRepoObjs

GetRepoObjs provides a mock function for the type Dependencies

func (*Dependencies) GetWriteCredentials

func (_mock *Dependencies) GetWriteCredentials(ctx context.Context, repoURL string, project string) (*v1alpha1.Repository, error)

GetWriteCredentials provides a mock function for the type Dependencies

func (*Dependencies) PersistAppHydratorStatus

func (_mock *Dependencies) PersistAppHydratorStatus(orig *v1alpha1.Application, newStatus *v1alpha1.SourceHydratorStatus)

PersistAppHydratorStatus provides a mock function for the type Dependencies

func (*Dependencies) RequestAppRefresh

func (_mock *Dependencies) RequestAppRefresh(appName string, appNamespace string) error

RequestAppRefresh provides a mock function for the type Dependencies

type Dependencies_AddHydrationQueueItem_Call

type Dependencies_AddHydrationQueueItem_Call struct {
	*mock.Call
}

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

func (*Dependencies_AddHydrationQueueItem_Call) Return

func (*Dependencies_AddHydrationQueueItem_Call) Run

func (*Dependencies_AddHydrationQueueItem_Call) RunAndReturn

type Dependencies_Expecter

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

func (*Dependencies_Expecter) AddHydrationQueueItem

func (_e *Dependencies_Expecter) AddHydrationQueueItem(key interface{}) *Dependencies_AddHydrationQueueItem_Call

AddHydrationQueueItem is a helper method to define mock.On call

  • key types.HydrationQueueKey

func (*Dependencies_Expecter) GetHydratorCommitMessageTemplate

func (_e *Dependencies_Expecter) GetHydratorCommitMessageTemplate() *Dependencies_GetHydratorCommitMessageTemplate_Call

GetHydratorCommitMessageTemplate is a helper method to define mock.On call

func (*Dependencies_Expecter) GetProcessableAppProj

func (_e *Dependencies_Expecter) GetProcessableAppProj(app interface{}) *Dependencies_GetProcessableAppProj_Call

GetProcessableAppProj is a helper method to define mock.On call

  • app *v1alpha1.Application

func (*Dependencies_Expecter) GetProcessableApps

GetProcessableApps is a helper method to define mock.On call

func (*Dependencies_Expecter) GetRepoObjs

func (_e *Dependencies_Expecter) GetRepoObjs(ctx interface{}, app interface{}, source interface{}, revision interface{}, project interface{}) *Dependencies_GetRepoObjs_Call

GetRepoObjs is a helper method to define mock.On call

  • ctx context.Context
  • app *v1alpha1.Application
  • source v1alpha1.ApplicationSource
  • revision string
  • project *v1alpha1.AppProject

func (*Dependencies_Expecter) GetWriteCredentials

func (_e *Dependencies_Expecter) GetWriteCredentials(ctx interface{}, repoURL interface{}, project interface{}) *Dependencies_GetWriteCredentials_Call

GetWriteCredentials is a helper method to define mock.On call

  • ctx context.Context
  • repoURL string
  • project string

func (*Dependencies_Expecter) PersistAppHydratorStatus

func (_e *Dependencies_Expecter) PersistAppHydratorStatus(orig interface{}, newStatus interface{}) *Dependencies_PersistAppHydratorStatus_Call

PersistAppHydratorStatus is a helper method to define mock.On call

  • orig *v1alpha1.Application
  • newStatus *v1alpha1.SourceHydratorStatus

func (*Dependencies_Expecter) RequestAppRefresh

func (_e *Dependencies_Expecter) RequestAppRefresh(appName interface{}, appNamespace interface{}) *Dependencies_RequestAppRefresh_Call

RequestAppRefresh is a helper method to define mock.On call

  • appName string
  • appNamespace string

type Dependencies_GetHydratorCommitMessageTemplate_Call

type Dependencies_GetHydratorCommitMessageTemplate_Call struct {
	*mock.Call
}

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

func (*Dependencies_GetHydratorCommitMessageTemplate_Call) Return

func (*Dependencies_GetHydratorCommitMessageTemplate_Call) Run

func (*Dependencies_GetHydratorCommitMessageTemplate_Call) RunAndReturn

type Dependencies_GetProcessableAppProj_Call

type Dependencies_GetProcessableAppProj_Call struct {
	*mock.Call
}

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

func (*Dependencies_GetProcessableAppProj_Call) Return

func (*Dependencies_GetProcessableAppProj_Call) Run

func (*Dependencies_GetProcessableAppProj_Call) RunAndReturn

type Dependencies_GetProcessableApps_Call

type Dependencies_GetProcessableApps_Call struct {
	*mock.Call
}

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

func (*Dependencies_GetProcessableApps_Call) Return

func (*Dependencies_GetProcessableApps_Call) Run

func (*Dependencies_GetProcessableApps_Call) RunAndReturn

type Dependencies_GetRepoObjs_Call

type Dependencies_GetRepoObjs_Call struct {
	*mock.Call
}

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

func (*Dependencies_GetRepoObjs_Call) Return

func (*Dependencies_GetRepoObjs_Call) Run

func (*Dependencies_GetRepoObjs_Call) RunAndReturn

type Dependencies_GetWriteCredentials_Call

type Dependencies_GetWriteCredentials_Call struct {
	*mock.Call
}

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

func (*Dependencies_GetWriteCredentials_Call) Return

func (*Dependencies_GetWriteCredentials_Call) Run

func (*Dependencies_GetWriteCredentials_Call) RunAndReturn

type Dependencies_PersistAppHydratorStatus_Call

type Dependencies_PersistAppHydratorStatus_Call struct {
	*mock.Call
}

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

func (*Dependencies_PersistAppHydratorStatus_Call) Return

func (*Dependencies_PersistAppHydratorStatus_Call) Run

func (*Dependencies_PersistAppHydratorStatus_Call) RunAndReturn

type Dependencies_RequestAppRefresh_Call

type Dependencies_RequestAppRefresh_Call struct {
	*mock.Call
}

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

func (*Dependencies_RequestAppRefresh_Call) Return

func (*Dependencies_RequestAppRefresh_Call) Run

func (*Dependencies_RequestAppRefresh_Call) RunAndReturn

func (_c *Dependencies_RequestAppRefresh_Call) RunAndReturn(run func(appName string, appNamespace string) error) *Dependencies_RequestAppRefresh_Call

type RepoGetter

type RepoGetter struct {
	mock.Mock
}

RepoGetter is an autogenerated mock type for the RepoGetter type

func NewRepoGetter

func NewRepoGetter(t interface {
	mock.TestingT
	Cleanup(func())
}) *RepoGetter

NewRepoGetter creates a new instance of RepoGetter. 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 (*RepoGetter) EXPECT

func (_m *RepoGetter) EXPECT() *RepoGetter_Expecter

func (*RepoGetter) GetRepository

func (_mock *RepoGetter) GetRepository(ctx context.Context, repoURL string, project string) (*v1alpha1.Repository, error)

GetRepository provides a mock function for the type RepoGetter

type RepoGetter_Expecter

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

func (*RepoGetter_Expecter) GetRepository

func (_e *RepoGetter_Expecter) GetRepository(ctx interface{}, repoURL interface{}, project interface{}) *RepoGetter_GetRepository_Call

GetRepository is a helper method to define mock.On call

  • ctx context.Context
  • repoURL string
  • project string

type RepoGetter_GetRepository_Call

type RepoGetter_GetRepository_Call struct {
	*mock.Call
}

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

func (*RepoGetter_GetRepository_Call) Return

func (*RepoGetter_GetRepository_Call) Run

func (_c *RepoGetter_GetRepository_Call) Run(run func(ctx context.Context, repoURL string, project string)) *RepoGetter_GetRepository_Call

func (*RepoGetter_GetRepository_Call) RunAndReturn

func (_c *RepoGetter_GetRepository_Call) RunAndReturn(run func(ctx context.Context, repoURL string, project string) (*v1alpha1.Repository, error)) *RepoGetter_GetRepository_Call

Jump to

Keyboard shortcuts

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