Documentation
¶
Index ¶
- type LockFile
- type LockFile_Expecter
- type LockFile_Read_Call
- type Mod
- type Mod_Expecter
- type Mod_Get_Call
- type Storage
- type Storage_Expecter
- type Storage_GetInstallDir_Call
- func (_c *Storage_GetInstallDir_Call) Return(_a0 string) *Storage_GetInstallDir_Call
- func (_c *Storage_GetInstallDir_Call) Run(run func(moduleName string, revisionVersion string)) *Storage_GetInstallDir_Call
- func (_c *Storage_GetInstallDir_Call) RunAndReturn(run func(string, string) string) *Storage_GetInstallDir_Call
- type Storage_IsModuleInstalled_Call
- func (_c *Storage_IsModuleInstalled_Call) Return(_a0 bool, _a1 error) *Storage_IsModuleInstalled_Call
- func (_c *Storage_IsModuleInstalled_Call) Run(run func(module models.Module)) *Storage_IsModuleInstalled_Call
- func (_c *Storage_IsModuleInstalled_Call) RunAndReturn(run func(models.Module) (bool, error)) *Storage_IsModuleInstalled_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LockFile ¶
LockFile is an autogenerated mock type for the LockFile type
func NewLockFile ¶
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
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 ¶
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 (_c *LockFile_Read_Call) Return(_a0 models.LockFileInfo, _a1 error) *LockFile_Read_Call
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 ¶
Mod is an autogenerated mock type for the Mod type
func NewMod ¶
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
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 ¶
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 ¶
Storage is an autogenerated mock type for the Storage type
func NewStorage ¶
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 ¶
GetInstallDir provides a mock function with given fields: moduleName, revisionVersion
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 ¶
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 (_c *Storage_GetInstallDir_Call) Return(_a0 string) *Storage_GetInstallDir_Call
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 ¶
func (_c *Storage_GetInstallDir_Call) RunAndReturn(run func(string, string) string) *Storage_GetInstallDir_Call
type Storage_IsModuleInstalled_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 (_c *Storage_IsModuleInstalled_Call) Return(_a0 bool, _a1 error) *Storage_IsModuleInstalled_Call
func (*Storage_IsModuleInstalled_Call) Run ¶
func (_c *Storage_IsModuleInstalled_Call) Run(run func(module models.Module)) *Storage_IsModuleInstalled_Call
func (*Storage_IsModuleInstalled_Call) RunAndReturn ¶
func (_c *Storage_IsModuleInstalled_Call) RunAndReturn(run func(models.Module) (bool, error)) *Storage_IsModuleInstalled_Call