mocks

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LockFile

type LockFile struct {
	mock.Mock
}

LockFile is an autogenerated mock type for the LockFile type

func NewLockFile

func NewLockFile(t interface {
	mock.TestingT
	Cleanup(func())
}) *LockFile

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

func (_m *LockFile) EXPECT() *LockFile_Expecter

func (*LockFile) Read

func (_m *LockFile) Read(moduleName string) (models.LockFileInfo, error)

Read provides a mock function with given fields: moduleName

type LockFile_Expecter

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

func (*LockFile_Expecter) Read

func (_e *LockFile_Expecter) Read(moduleName interface{}) *LockFile_Read_Call

Read is a helper method to define mock.On call

  • moduleName string

type LockFile_Read_Call

type LockFile_Read_Call struct {
	*mock.Call
}

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

func (*LockFile_Read_Call) Return

func (*LockFile_Read_Call) Run

func (_c *LockFile_Read_Call) Run(run func(moduleName string)) *LockFile_Read_Call

func (*LockFile_Read_Call) RunAndReturn

func (_c *LockFile_Read_Call) RunAndReturn(run func(string) (models.LockFileInfo, error)) *LockFile_Read_Call

type Mod

type Mod struct {
	mock.Mock
}

Mod is an autogenerated mock type for the Mod type

func NewMod

func NewMod(t interface {
	mock.TestingT
	Cleanup(func())
}) *Mod

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

func (_m *Mod) EXPECT() *Mod_Expecter

func (*Mod) Get

func (_m *Mod) Get(ctx context.Context, module models.Module) error

Get provides a mock function with given fields: ctx, module

type Mod_Expecter

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

func (*Mod_Expecter) Get

func (_e *Mod_Expecter) Get(ctx interface{}, module interface{}) *Mod_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • module models.Module

type Mod_Get_Call

type Mod_Get_Call struct {
	*mock.Call
}

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

func (*Mod_Get_Call) Return

func (_c *Mod_Get_Call) Return(_a0 error) *Mod_Get_Call

func (*Mod_Get_Call) Run

func (_c *Mod_Get_Call) Run(run func(ctx context.Context, module models.Module)) *Mod_Get_Call

func (*Mod_Get_Call) RunAndReturn

func (_c *Mod_Get_Call) RunAndReturn(run func(context.Context, models.Module) error) *Mod_Get_Call

type Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func NewStorage

func NewStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *Storage

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

func (_m *Storage) EXPECT() *Storage_Expecter

func (*Storage) GetInstallDir

func (_m *Storage) GetInstallDir(moduleName string, revisionVersion string) string

GetInstallDir provides a mock function with given fields: moduleName, revisionVersion

func (*Storage) IsModuleInstalled

func (_m *Storage) IsModuleInstalled(module models.Module) (bool, error)

IsModuleInstalled provides a mock function with given fields: module

type Storage_Expecter

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

func (*Storage_Expecter) GetInstallDir

func (_e *Storage_Expecter) GetInstallDir(moduleName interface{}, revisionVersion interface{}) *Storage_GetInstallDir_Call

GetInstallDir is a helper method to define mock.On call

  • moduleName string
  • revisionVersion string

func (*Storage_Expecter) IsModuleInstalled

func (_e *Storage_Expecter) IsModuleInstalled(module interface{}) *Storage_IsModuleInstalled_Call

IsModuleInstalled is a helper method to define mock.On call

  • module models.Module

type Storage_GetInstallDir_Call

type Storage_GetInstallDir_Call struct {
	*mock.Call
}

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

func (*Storage_GetInstallDir_Call) Return

func (*Storage_GetInstallDir_Call) Run

func (_c *Storage_GetInstallDir_Call) Run(run func(moduleName string, revisionVersion string)) *Storage_GetInstallDir_Call

func (*Storage_GetInstallDir_Call) RunAndReturn

type Storage_IsModuleInstalled_Call

type Storage_IsModuleInstalled_Call struct {
	*mock.Call
}

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

func (*Storage_IsModuleInstalled_Call) Return

func (*Storage_IsModuleInstalled_Call) Run

func (*Storage_IsModuleInstalled_Call) RunAndReturn

Jump to

Keyboard shortcuts

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