mocks

package
v1.1.38 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: BSD-3-Clause 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) ResolveVersions

func (_m *Installer) ResolveVersions(versionOrTag string) (installer.ResolvedVersions, error)

ResolveVersions provides a mock function with given fields: versionOrTag

func (*Installer) UpdateThelma

func (_m *Installer) UpdateThelma(versionOrTag string) error

UpdateThelma provides a mock function with given fields: versionOrTag

type Installer_Expecter

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

func (*Installer_Expecter) ResolveVersions

func (_e *Installer_Expecter) ResolveVersions(versionOrTag interface{}) *Installer_ResolveVersions_Call

ResolveVersions is a helper method to define mock.On call

  • versionOrTag string

func (*Installer_Expecter) UpdateThelma

func (_e *Installer_Expecter) UpdateThelma(versionOrTag interface{}) *Installer_UpdateThelma_Call

UpdateThelma is a helper method to define mock.On call

  • versionOrTag string

type Installer_ResolveVersions_Call

type Installer_ResolveVersions_Call struct {
	*mock.Call
}

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

func (*Installer_ResolveVersions_Call) Return

func (*Installer_ResolveVersions_Call) Run

func (_c *Installer_ResolveVersions_Call) Run(run func(versionOrTag string)) *Installer_ResolveVersions_Call

func (*Installer_ResolveVersions_Call) RunAndReturn added in v1.0.73

type Installer_UpdateThelma_Call

type Installer_UpdateThelma_Call struct {
	*mock.Call
}

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

func (*Installer_UpdateThelma_Call) Return

func (*Installer_UpdateThelma_Call) Run

func (_c *Installer_UpdateThelma_Call) Run(run func(versionOrTag string)) *Installer_UpdateThelma_Call

func (*Installer_UpdateThelma_Call) RunAndReturn added in v1.0.73

Jump to

Keyboard shortcuts

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