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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dir

type Dir struct {
	mock.Mock
}

Dir is an autogenerated mock type for the Dir type

func NewDir

func NewDir(t interface {
	mock.TestingT
	Cleanup(func())
}) *Dir

NewDir creates a new instance of Dir. 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 (*Dir) CleanupOldReleases

func (_m *Dir) CleanupOldReleases(keepReleases int) error

CleanupOldReleases provides a mock function with given fields: keepReleases

func (*Dir) CopyUnpackedArchive

func (_m *Dir) CopyUnpackedArchive(unpackDir string) error

CopyUnpackedArchive provides a mock function with given fields: unpackDir

func (*Dir) CurrentVersion

func (_m *Dir) CurrentVersion() (string, error)

CurrentVersion provides a mock function with given fields:

func (*Dir) CurrentVersionMatches

func (_m *Dir) CurrentVersionMatches(version string) bool

CurrentVersionMatches provides a mock function with given fields: version

func (*Dir) EXPECT

func (_m *Dir) EXPECT() *Dir_Expecter
func (_m *Dir) UpdateCurrentReleaseSymlink(version string) error

UpdateCurrentReleaseSymlink provides a mock function with given fields: version

func (*Dir) WithInstallerLock

func (_m *Dir) WithInstallerLock(fn func() error) error

WithInstallerLock provides a mock function with given fields: fn

type Dir_CleanupOldReleases_Call

type Dir_CleanupOldReleases_Call struct {
	*mock.Call
}

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

func (*Dir_CleanupOldReleases_Call) Return

func (*Dir_CleanupOldReleases_Call) Run

func (_c *Dir_CleanupOldReleases_Call) Run(run func(keepReleases int)) *Dir_CleanupOldReleases_Call

func (*Dir_CleanupOldReleases_Call) RunAndReturn added in v1.0.73

type Dir_CopyUnpackedArchive_Call

type Dir_CopyUnpackedArchive_Call struct {
	*mock.Call
}

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

func (*Dir_CopyUnpackedArchive_Call) Return

func (*Dir_CopyUnpackedArchive_Call) Run

func (*Dir_CopyUnpackedArchive_Call) RunAndReturn added in v1.0.73

type Dir_CurrentVersionMatches_Call

type Dir_CurrentVersionMatches_Call struct {
	*mock.Call
}

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

func (*Dir_CurrentVersionMatches_Call) Return

func (*Dir_CurrentVersionMatches_Call) Run

func (*Dir_CurrentVersionMatches_Call) RunAndReturn added in v1.0.73

type Dir_CurrentVersion_Call

type Dir_CurrentVersion_Call struct {
	*mock.Call
}

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

func (*Dir_CurrentVersion_Call) Return

func (*Dir_CurrentVersion_Call) Run

func (_c *Dir_CurrentVersion_Call) Run(run func()) *Dir_CurrentVersion_Call

func (*Dir_CurrentVersion_Call) RunAndReturn added in v1.0.73

func (_c *Dir_CurrentVersion_Call) RunAndReturn(run func() (string, error)) *Dir_CurrentVersion_Call

type Dir_Expecter

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

func (*Dir_Expecter) CleanupOldReleases

func (_e *Dir_Expecter) CleanupOldReleases(keepReleases interface{}) *Dir_CleanupOldReleases_Call

CleanupOldReleases is a helper method to define mock.On call

  • keepReleases int

func (*Dir_Expecter) CopyUnpackedArchive

func (_e *Dir_Expecter) CopyUnpackedArchive(unpackDir interface{}) *Dir_CopyUnpackedArchive_Call

CopyUnpackedArchive is a helper method to define mock.On call

  • unpackDir string

func (*Dir_Expecter) CurrentVersion

func (_e *Dir_Expecter) CurrentVersion() *Dir_CurrentVersion_Call

CurrentVersion is a helper method to define mock.On call

func (*Dir_Expecter) CurrentVersionMatches

func (_e *Dir_Expecter) CurrentVersionMatches(version interface{}) *Dir_CurrentVersionMatches_Call

CurrentVersionMatches is a helper method to define mock.On call

  • version string
func (_e *Dir_Expecter) UpdateCurrentReleaseSymlink(version interface{}) *Dir_UpdateCurrentReleaseSymlink_Call

UpdateCurrentReleaseSymlink is a helper method to define mock.On call

  • version string

func (*Dir_Expecter) WithInstallerLock

func (_e *Dir_Expecter) WithInstallerLock(fn interface{}) *Dir_WithInstallerLock_Call

WithInstallerLock is a helper method to define mock.On call

  • fn func() error
type Dir_UpdateCurrentReleaseSymlink_Call struct {
	*mock.Call
}

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

type Dir_WithInstallerLock_Call

type Dir_WithInstallerLock_Call struct {
	*mock.Call
}

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

func (*Dir_WithInstallerLock_Call) Return

func (*Dir_WithInstallerLock_Call) Run

func (_c *Dir_WithInstallerLock_Call) Run(run func(fn func() error)) *Dir_WithInstallerLock_Call

func (*Dir_WithInstallerLock_Call) RunAndReturn added in v1.0.73

func (_c *Dir_WithInstallerLock_Call) RunAndReturn(run func(func() error) error) *Dir_WithInstallerLock_Call

Jump to

Keyboard shortcuts

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