mocks

package
v1.1.54 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sync

type Sync struct {
	mock.Mock
}

Sync is an autogenerated mock type for the Sync type

func NewSync

func NewSync(t interface {
	mock.TestingT
	Cleanup(func())
}) *Sync

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

func (_m *Sync) EXPECT() *Sync_Expecter

func (*Sync) Sync

func (_m *Sync) Sync(releases []terra.Release, maxParallel int, options ...argocd.SyncOption) (map[terra.Release]*status.Status, error)

Sync provides a mock function with given fields: releases, maxParallel, options

type Sync_Expecter

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

func (*Sync_Expecter) Sync

func (_e *Sync_Expecter) Sync(releases interface{}, maxParallel interface{}, options ...interface{}) *Sync_Sync_Call

Sync is a helper method to define mock.On call

  • releases []terra.Release
  • maxParallel int
  • options ...argocd.SyncOption

type Sync_Sync_Call

type Sync_Sync_Call struct {
	*mock.Call
}

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

func (*Sync_Sync_Call) Return

func (_c *Sync_Sync_Call) Return(_a0 map[terra.Release]*status.Status, _a1 error) *Sync_Sync_Call

func (*Sync_Sync_Call) Run

func (_c *Sync_Sync_Call) Run(run func(releases []terra.Release, maxParallel int, options ...argocd.SyncOption)) *Sync_Sync_Call

func (*Sync_Sync_Call) RunAndReturn

func (_c *Sync_Sync_Call) RunAndReturn(run func([]terra.Release, int, ...argocd.SyncOption) (map[terra.Release]*status.Status, error)) *Sync_Sync_Call

Jump to

Keyboard shortcuts

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