mocks

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Installer

type Installer struct {
	mock.Mock
}

Installer is an autogenerated mock type for the Installer type

func NewInstaller

func NewInstaller(t interface {
	mock.TestingT
	Cleanup(func())
}) *Installer

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

func (_m *Installer) EXPECT() *Installer_Expecter

func (*Installer) InstallAgent

func (_m *Installer) InstallAgent(ctx context.Context, targetDir string) (bool, error)

InstallAgent provides a mock function with given fields: ctx, targetDir

type Installer_Expecter

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

func (*Installer_Expecter) InstallAgent

func (_e *Installer_Expecter) InstallAgent(ctx interface{}, targetDir interface{}) *Installer_InstallAgent_Call

InstallAgent is a helper method to define mock.On call

  • ctx context.Context
  • targetDir string

type Installer_InstallAgent_Call

type Installer_InstallAgent_Call struct {
	*mock.Call
}

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

func (*Installer_InstallAgent_Call) Return

func (*Installer_InstallAgent_Call) Run

func (*Installer_InstallAgent_Call) RunAndReturn

Jump to

Keyboard shortcuts

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