mocks

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Updater

type Updater struct {
	mock.Mock
}

Updater is an autogenerated mock type for the Updater type

func NewUpdater added in v0.9.5

func NewUpdater(t interface {
	mock.TestingT
	Cleanup(func())
}) *Updater

NewUpdater creates a new instance of Updater. 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 (*Updater) EXPECT added in v0.9.5

func (_m *Updater) EXPECT() *Updater_Expecter

func (*Updater) UpdateNamedEntity

func (_m *Updater) UpdateNamedEntity(ctx context.Context, name string, project string, domain string, rsType core.ResourceType, cmdCtx cmdcore.CommandContext) error

UpdateNamedEntity provides a mock function with given fields: ctx, name, project, domain, rsType, cmdCtx

type Updater_Expecter added in v0.9.5

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

func (*Updater_Expecter) UpdateNamedEntity added in v0.9.5

func (_e *Updater_Expecter) UpdateNamedEntity(ctx interface{}, name interface{}, project interface{}, domain interface{}, rsType interface{}, cmdCtx interface{}) *Updater_UpdateNamedEntity_Call

UpdateNamedEntity is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • project string
  • domain string
  • rsType core.ResourceType
  • cmdCtx cmdcore.CommandContext

type Updater_UpdateNamedEntity_Call added in v0.9.5

type Updater_UpdateNamedEntity_Call struct {
	*mock.Call
}

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

func (*Updater_UpdateNamedEntity_Call) Return added in v0.9.5

func (*Updater_UpdateNamedEntity_Call) Run added in v0.9.5

func (*Updater_UpdateNamedEntity_Call) RunAndReturn added in v0.9.5

Jump to

Keyboard shortcuts

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