mocks

package
v0.0.0-...-8b8f28e Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandFactory

type CommandFactory struct {
	mock.Mock
}

CommandFactory is an autogenerated mock type for the Factory type

func NewCommandFactory

func NewCommandFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *CommandFactory

NewCommandFactory creates a new instance of CommandFactory. 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 (*CommandFactory) Create

func (_mock *CommandFactory) Create(name string, args []string, opts *command.Opts) command.Command

Create provides a mock function for the type CommandFactory

func (*CommandFactory) EXPECT

type CommandFactory_Create_Call

type CommandFactory_Create_Call struct {
	*mock.Call
}

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

func (*CommandFactory_Create_Call) Return

func (*CommandFactory_Create_Call) Run

func (_c *CommandFactory_Create_Call) Run(run func(name string, args []string, opts *command.Opts)) *CommandFactory_Create_Call

func (*CommandFactory_Create_Call) RunAndReturn

func (_c *CommandFactory_Create_Call) RunAndReturn(run func(name string, args []string, opts *command.Opts) command.Command) *CommandFactory_Create_Call

type CommandFactory_Expecter

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

func (*CommandFactory_Expecter) Create

func (_e *CommandFactory_Expecter) Create(name interface{}, args interface{}, opts interface{}) *CommandFactory_Create_Call

Create is a helper method to define mock.On call

  • name string
  • args []string
  • opts *command.Opts

type FileManager

type FileManager struct {
	mock.Mock
}

FileManager is an autogenerated mock type for the FileManager type

func NewFileManager

func NewFileManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *FileManager

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

func (_m *FileManager) EXPECT() *FileManager_Expecter

func (*FileManager) ReadDir

func (_mock *FileManager) ReadDir(name string) ([]os.DirEntry, error)

ReadDir provides a mock function for the type FileManager

func (*FileManager) ReadFile

func (_mock *FileManager) ReadFile(pth string) ([]byte, error)

ReadFile provides a mock function for the type FileManager

func (*FileManager) WriteFile

func (_mock *FileManager) WriteFile(filename string, data []byte, perm fs.FileMode) error

WriteFile provides a mock function for the type FileManager

type FileManager_Expecter

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

func (*FileManager_Expecter) ReadDir

func (_e *FileManager_Expecter) ReadDir(name interface{}) *FileManager_ReadDir_Call

ReadDir is a helper method to define mock.On call

  • name string

func (*FileManager_Expecter) ReadFile

func (_e *FileManager_Expecter) ReadFile(pth interface{}) *FileManager_ReadFile_Call

ReadFile is a helper method to define mock.On call

  • pth string

func (*FileManager_Expecter) WriteFile

func (_e *FileManager_Expecter) WriteFile(filename interface{}, data interface{}, perm interface{}) *FileManager_WriteFile_Call

WriteFile is a helper method to define mock.On call

  • filename string
  • data []byte
  • perm fs.FileMode

type FileManager_ReadDir_Call

type FileManager_ReadDir_Call struct {
	*mock.Call
}

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

func (*FileManager_ReadDir_Call) Return

func (*FileManager_ReadDir_Call) Run

func (_c *FileManager_ReadDir_Call) Run(run func(name string)) *FileManager_ReadDir_Call

func (*FileManager_ReadDir_Call) RunAndReturn

func (_c *FileManager_ReadDir_Call) RunAndReturn(run func(name string) ([]os.DirEntry, error)) *FileManager_ReadDir_Call

type FileManager_ReadFile_Call

type FileManager_ReadFile_Call struct {
	*mock.Call
}

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

func (*FileManager_ReadFile_Call) Return

func (*FileManager_ReadFile_Call) Run

func (*FileManager_ReadFile_Call) RunAndReturn

func (_c *FileManager_ReadFile_Call) RunAndReturn(run func(pth string) ([]byte, error)) *FileManager_ReadFile_Call

type FileManager_WriteFile_Call

type FileManager_WriteFile_Call struct {
	*mock.Call
}

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

func (*FileManager_WriteFile_Call) Return

func (*FileManager_WriteFile_Call) Run

func (_c *FileManager_WriteFile_Call) Run(run func(filename string, data []byte, perm fs.FileMode)) *FileManager_WriteFile_Call

func (*FileManager_WriteFile_Call) RunAndReturn

func (_c *FileManager_WriteFile_Call) RunAndReturn(run func(filename string, data []byte, perm fs.FileMode) error) *FileManager_WriteFile_Call

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func NewLogger

func NewLogger(t interface {
	mock.TestingT
	Cleanup(func())
}) *Logger

NewLogger creates a new instance of Logger. 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 (*Logger) Debugf

func (_mock *Logger) Debugf(format string, v ...interface{})

Debugf provides a mock function for the type Logger

func (*Logger) Donef

func (_mock *Logger) Donef(format string, v ...interface{})

Donef provides a mock function for the type Logger

func (*Logger) EXPECT

func (_m *Logger) EXPECT() *Logger_Expecter

func (*Logger) EnableDebugLog

func (_mock *Logger) EnableDebugLog(enable bool)

EnableDebugLog provides a mock function for the type Logger

func (*Logger) Errorf

func (_mock *Logger) Errorf(format string, v ...interface{})

Errorf provides a mock function for the type Logger

func (*Logger) Infof

func (_mock *Logger) Infof(format string, v ...interface{})

Infof provides a mock function for the type Logger

func (*Logger) Printf

func (_mock *Logger) Printf(format string, v ...interface{})

Printf provides a mock function for the type Logger

func (*Logger) Println

func (_mock *Logger) Println()

Println provides a mock function for the type Logger

func (*Logger) TDebugf

func (_mock *Logger) TDebugf(format string, v ...interface{})

TDebugf provides a mock function for the type Logger

func (*Logger) TDonef

func (_mock *Logger) TDonef(format string, v ...interface{})

TDonef provides a mock function for the type Logger

func (*Logger) TErrorf

func (_mock *Logger) TErrorf(format string, v ...interface{})

TErrorf provides a mock function for the type Logger

func (*Logger) TInfof

func (_mock *Logger) TInfof(format string, v ...interface{})

TInfof provides a mock function for the type Logger

func (*Logger) TPrintf

func (_mock *Logger) TPrintf(format string, v ...interface{})

TPrintf provides a mock function for the type Logger

func (*Logger) TWarnf

func (_mock *Logger) TWarnf(format string, v ...interface{})

TWarnf provides a mock function for the type Logger

func (*Logger) Warnf

func (_mock *Logger) Warnf(format string, v ...interface{})

Warnf provides a mock function for the type Logger

type Logger_Debugf_Call

type Logger_Debugf_Call struct {
	*mock.Call
}

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

func (*Logger_Debugf_Call) Return

func (_c *Logger_Debugf_Call) Return() *Logger_Debugf_Call

func (*Logger_Debugf_Call) Run

func (_c *Logger_Debugf_Call) Run(run func(format string, v ...interface{})) *Logger_Debugf_Call

func (*Logger_Debugf_Call) RunAndReturn

func (_c *Logger_Debugf_Call) RunAndReturn(run func(format string, v ...interface{})) *Logger_Debugf_Call

type Logger_Donef_Call

type Logger_Donef_Call struct {
	*mock.Call
}

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

func (*Logger_Donef_Call) Return

func (_c *Logger_Donef_Call) Return() *Logger_Donef_Call

func (*Logger_Donef_Call) Run

func (_c *Logger_Donef_Call) Run(run func(format string, v ...interface{})) *Logger_Donef_Call

func (*Logger_Donef_Call) RunAndReturn

func (_c *Logger_Donef_Call) RunAndReturn(run func(format string, v ...interface{})) *Logger_Donef_Call

type Logger_EnableDebugLog_Call

type Logger_EnableDebugLog_Call struct {
	*mock.Call
}

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

func (*Logger_EnableDebugLog_Call) Return

func (*Logger_EnableDebugLog_Call) Run

func (_c *Logger_EnableDebugLog_Call) Run(run func(enable bool)) *Logger_EnableDebugLog_Call

func (*Logger_EnableDebugLog_Call) RunAndReturn

func (_c *Logger_EnableDebugLog_Call) RunAndReturn(run func(enable bool)) *Logger_EnableDebugLog_Call

type Logger_Errorf_Call

type Logger_Errorf_Call struct {
	*mock.Call
}

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

func (*Logger_Errorf_Call) Return

func (_c *Logger_Errorf_Call) Return() *Logger_Errorf_Call

func (*Logger_Errorf_Call) Run

func (_c *Logger_Errorf_Call) Run(run func(format string, v ...interface{})) *Logger_Errorf_Call

func (*Logger_Errorf_Call) RunAndReturn

func (_c *Logger_Errorf_Call) RunAndReturn(run func(format string, v ...interface{})) *Logger_Errorf_Call

type Logger_Expecter

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

func (*Logger_Expecter) Debugf

func (_e *Logger_Expecter) Debugf(format interface{}, v ...interface{}) *Logger_Debugf_Call

Debugf is a helper method to define mock.On call

  • format string
  • v ...interface{}

func (*Logger_Expecter) Donef

func (_e *Logger_Expecter) Donef(format interface{}, v ...interface{}) *Logger_Donef_Call

Donef is a helper method to define mock.On call

  • format string
  • v ...interface{}

func (*Logger_Expecter) EnableDebugLog

func (_e *Logger_Expecter) EnableDebugLog(enable interface{}) *Logger_EnableDebugLog_Call

EnableDebugLog is a helper method to define mock.On call

  • enable bool

func (*Logger_Expecter) Errorf

func (_e *Logger_Expecter) Errorf(format interface{}, v ...interface{}) *Logger_Errorf_Call

Errorf is a helper method to define mock.On call

  • format string
  • v ...interface{}

func (*Logger_Expecter) Infof

func (_e *Logger_Expecter) Infof(format interface{}, v ...interface{}) *Logger_Infof_Call

Infof is a helper method to define mock.On call

  • format string
  • v ...interface{}

func (*Logger_Expecter) Printf

func (_e *Logger_Expecter) Printf(format interface{}, v ...interface{}) *Logger_Printf_Call

Printf is a helper method to define mock.On call

  • format string
  • v ...interface{}

func (*Logger_Expecter) Println

func (_e *Logger_Expecter) Println() *Logger_Println_Call

Println is a helper method to define mock.On call

func (*Logger_Expecter) TDebugf

func (_e *Logger_Expecter) TDebugf(format interface{}, v ...interface{}) *Logger_TDebugf_Call

TDebugf is a helper method to define mock.On call

  • format string
  • v ...interface{}

func (*Logger_Expecter) TDonef

func (_e *Logger_Expecter) TDonef(format interface{}, v ...interface{}) *Logger_TDonef_Call

TDonef is a helper method to define mock.On call

  • format string
  • v ...interface{}

func (*Logger_Expecter) TErrorf

func (_e *Logger_Expecter) TErrorf(format interface{}, v ...interface{}) *Logger_TErrorf_Call

TErrorf is a helper method to define mock.On call

  • format string
  • v ...interface{}

func (*Logger_Expecter) TInfof

func (_e *Logger_Expecter) TInfof(format interface{}, v ...interface{}) *Logger_TInfof_Call

TInfof is a helper method to define mock.On call

  • format string
  • v ...interface{}

func (*Logger_Expecter) TPrintf

func (_e *Logger_Expecter) TPrintf(format interface{}, v ...interface{}) *Logger_TPrintf_Call

TPrintf is a helper method to define mock.On call

  • format string
  • v ...interface{}

func (*Logger_Expecter) TWarnf

func (_e *Logger_Expecter) TWarnf(format interface{}, v ...interface{}) *Logger_TWarnf_Call

TWarnf is a helper method to define mock.On call

  • format string
  • v ...interface{}

func (*Logger_Expecter) Warnf

func (_e *Logger_Expecter) Warnf(format interface{}, v ...interface{}) *Logger_Warnf_Call

Warnf is a helper method to define mock.On call

  • format string
  • v ...interface{}

type Logger_Infof_Call

type Logger_Infof_Call struct {
	*mock.Call
}

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

func (*Logger_Infof_Call) Return

func (_c *Logger_Infof_Call) Return() *Logger_Infof_Call

func (*Logger_Infof_Call) Run

func (_c *Logger_Infof_Call) Run(run func(format string, v ...interface{})) *Logger_Infof_Call

func (*Logger_Infof_Call) RunAndReturn

func (_c *Logger_Infof_Call) RunAndReturn(run func(format string, v ...interface{})) *Logger_Infof_Call

type Logger_Printf_Call

type Logger_Printf_Call struct {
	*mock.Call
}

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

func (*Logger_Printf_Call) Return

func (_c *Logger_Printf_Call) Return() *Logger_Printf_Call

func (*Logger_Printf_Call) Run

func (_c *Logger_Printf_Call) Run(run func(format string, v ...interface{})) *Logger_Printf_Call

func (*Logger_Printf_Call) RunAndReturn

func (_c *Logger_Printf_Call) RunAndReturn(run func(format string, v ...interface{})) *Logger_Printf_Call

type Logger_Println_Call

type Logger_Println_Call struct {
	*mock.Call
}

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

func (*Logger_Println_Call) Return

func (*Logger_Println_Call) Run

func (_c *Logger_Println_Call) Run(run func()) *Logger_Println_Call

func (*Logger_Println_Call) RunAndReturn

func (_c *Logger_Println_Call) RunAndReturn(run func()) *Logger_Println_Call

type Logger_TDebugf_Call

type Logger_TDebugf_Call struct {
	*mock.Call
}

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

func (*Logger_TDebugf_Call) Return

func (*Logger_TDebugf_Call) Run

func (_c *Logger_TDebugf_Call) Run(run func(format string, v ...interface{})) *Logger_TDebugf_Call

func (*Logger_TDebugf_Call) RunAndReturn

func (_c *Logger_TDebugf_Call) RunAndReturn(run func(format string, v ...interface{})) *Logger_TDebugf_Call

type Logger_TDonef_Call

type Logger_TDonef_Call struct {
	*mock.Call
}

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

func (*Logger_TDonef_Call) Return

func (_c *Logger_TDonef_Call) Return() *Logger_TDonef_Call

func (*Logger_TDonef_Call) Run

func (_c *Logger_TDonef_Call) Run(run func(format string, v ...interface{})) *Logger_TDonef_Call

func (*Logger_TDonef_Call) RunAndReturn

func (_c *Logger_TDonef_Call) RunAndReturn(run func(format string, v ...interface{})) *Logger_TDonef_Call

type Logger_TErrorf_Call

type Logger_TErrorf_Call struct {
	*mock.Call
}

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

func (*Logger_TErrorf_Call) Return

func (*Logger_TErrorf_Call) Run

func (_c *Logger_TErrorf_Call) Run(run func(format string, v ...interface{})) *Logger_TErrorf_Call

func (*Logger_TErrorf_Call) RunAndReturn

func (_c *Logger_TErrorf_Call) RunAndReturn(run func(format string, v ...interface{})) *Logger_TErrorf_Call

type Logger_TInfof_Call

type Logger_TInfof_Call struct {
	*mock.Call
}

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

func (*Logger_TInfof_Call) Return

func (_c *Logger_TInfof_Call) Return() *Logger_TInfof_Call

func (*Logger_TInfof_Call) Run

func (_c *Logger_TInfof_Call) Run(run func(format string, v ...interface{})) *Logger_TInfof_Call

func (*Logger_TInfof_Call) RunAndReturn

func (_c *Logger_TInfof_Call) RunAndReturn(run func(format string, v ...interface{})) *Logger_TInfof_Call

type Logger_TPrintf_Call

type Logger_TPrintf_Call struct {
	*mock.Call
}

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

func (*Logger_TPrintf_Call) Return

func (*Logger_TPrintf_Call) Run

func (_c *Logger_TPrintf_Call) Run(run func(format string, v ...interface{})) *Logger_TPrintf_Call

func (*Logger_TPrintf_Call) RunAndReturn

func (_c *Logger_TPrintf_Call) RunAndReturn(run func(format string, v ...interface{})) *Logger_TPrintf_Call

type Logger_TWarnf_Call

type Logger_TWarnf_Call struct {
	*mock.Call
}

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

func (*Logger_TWarnf_Call) Return

func (_c *Logger_TWarnf_Call) Return() *Logger_TWarnf_Call

func (*Logger_TWarnf_Call) Run

func (_c *Logger_TWarnf_Call) Run(run func(format string, v ...interface{})) *Logger_TWarnf_Call

func (*Logger_TWarnf_Call) RunAndReturn

func (_c *Logger_TWarnf_Call) RunAndReturn(run func(format string, v ...interface{})) *Logger_TWarnf_Call

type Logger_Warnf_Call

type Logger_Warnf_Call struct {
	*mock.Call
}

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

func (*Logger_Warnf_Call) Return

func (_c *Logger_Warnf_Call) Return() *Logger_Warnf_Call

func (*Logger_Warnf_Call) Run

func (_c *Logger_Warnf_Call) Run(run func(format string, v ...interface{})) *Logger_Warnf_Call

func (*Logger_Warnf_Call) RunAndReturn

func (_c *Logger_Warnf_Call) RunAndReturn(run func(format string, v ...interface{})) *Logger_Warnf_Call

type PathChecker

type PathChecker struct {
	mock.Mock
}

PathChecker is an autogenerated mock type for the PathChecker type

func NewPathChecker

func NewPathChecker(t interface {
	mock.TestingT
	Cleanup(func())
}) *PathChecker

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

func (_m *PathChecker) EXPECT() *PathChecker_Expecter

func (*PathChecker) IsDirExists

func (_mock *PathChecker) IsDirExists(pth string) (bool, error)

IsDirExists provides a mock function for the type PathChecker

func (*PathChecker) IsPathExists

func (_mock *PathChecker) IsPathExists(pth string) (bool, error)

IsPathExists provides a mock function for the type PathChecker

type PathChecker_Expecter

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

func (*PathChecker_Expecter) IsDirExists

func (_e *PathChecker_Expecter) IsDirExists(pth interface{}) *PathChecker_IsDirExists_Call

IsDirExists is a helper method to define mock.On call

  • pth string

func (*PathChecker_Expecter) IsPathExists

func (_e *PathChecker_Expecter) IsPathExists(pth interface{}) *PathChecker_IsPathExists_Call

IsPathExists is a helper method to define mock.On call

  • pth string

type PathChecker_IsDirExists_Call

type PathChecker_IsDirExists_Call struct {
	*mock.Call
}

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

func (*PathChecker_IsDirExists_Call) Return

func (*PathChecker_IsDirExists_Call) Run

func (*PathChecker_IsDirExists_Call) RunAndReturn

func (_c *PathChecker_IsDirExists_Call) RunAndReturn(run func(pth string) (bool, error)) *PathChecker_IsDirExists_Call

type PathChecker_IsPathExists_Call

type PathChecker_IsPathExists_Call struct {
	*mock.Call
}

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

func (*PathChecker_IsPathExists_Call) Return

func (*PathChecker_IsPathExists_Call) Run

func (*PathChecker_IsPathExists_Call) RunAndReturn

func (_c *PathChecker_IsPathExists_Call) RunAndReturn(run func(pth string) (bool, error)) *PathChecker_IsPathExists_Call

type PathProvider

type PathProvider struct {
	mock.Mock
}

PathProvider is an autogenerated mock type for the PathProvider type

func NewPathProvider

func NewPathProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *PathProvider

NewPathProvider creates a new instance of PathProvider. 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 (*PathProvider) CreateTempDir

func (_mock *PathProvider) CreateTempDir(prefix string) (string, error)

CreateTempDir provides a mock function for the type PathProvider

func (*PathProvider) EXPECT

func (_m *PathProvider) EXPECT() *PathProvider_Expecter

type PathProvider_CreateTempDir_Call

type PathProvider_CreateTempDir_Call struct {
	*mock.Call
}

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

func (*PathProvider_CreateTempDir_Call) Return

func (*PathProvider_CreateTempDir_Call) Run

func (*PathProvider_CreateTempDir_Call) RunAndReturn

type PathProvider_Expecter

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

func (*PathProvider_Expecter) CreateTempDir

func (_e *PathProvider_Expecter) CreateTempDir(prefix interface{}) *PathProvider_CreateTempDir_Call

CreateTempDir is a helper method to define mock.On call

  • prefix string

type XCCommandRunner

type XCCommandRunner struct {
	mock.Mock
}

XCCommandRunner is an autogenerated mock type for the Runner type

func NewXCCommandRunner

func NewXCCommandRunner(t interface {
	mock.TestingT
	Cleanup(func())
}) *XCCommandRunner

NewXCCommandRunner creates a new instance of XCCommandRunner. 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 (*XCCommandRunner) CheckInstall

func (_mock *XCCommandRunner) CheckInstall() (*version.Version, error)

CheckInstall provides a mock function for the type XCCommandRunner

func (*XCCommandRunner) EXPECT

func (*XCCommandRunner) Run

func (_mock *XCCommandRunner) Run(workDir string, xcodebuildOpts []string, logFormatterOpts []string) (xcodecommand.Output, error)

Run provides a mock function for the type XCCommandRunner

type XCCommandRunner_CheckInstall_Call

type XCCommandRunner_CheckInstall_Call struct {
	*mock.Call
}

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

func (*XCCommandRunner_CheckInstall_Call) Return

func (_c *XCCommandRunner_CheckInstall_Call) Return(version1 *version.Version, err error) *XCCommandRunner_CheckInstall_Call

func (*XCCommandRunner_CheckInstall_Call) Run

func (*XCCommandRunner_CheckInstall_Call) RunAndReturn

func (_c *XCCommandRunner_CheckInstall_Call) RunAndReturn(run func() (*version.Version, error)) *XCCommandRunner_CheckInstall_Call

type XCCommandRunner_Expecter

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

func (*XCCommandRunner_Expecter) CheckInstall

CheckInstall is a helper method to define mock.On call

func (*XCCommandRunner_Expecter) Run

func (_e *XCCommandRunner_Expecter) Run(workDir interface{}, xcodebuildOpts interface{}, logFormatterOpts interface{}) *XCCommandRunner_Run_Call

Run is a helper method to define mock.On call

  • workDir string
  • xcodebuildOpts []string
  • logFormatterOpts []string

type XCCommandRunner_Run_Call

type XCCommandRunner_Run_Call struct {
	*mock.Call
}

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

func (*XCCommandRunner_Run_Call) Return

func (*XCCommandRunner_Run_Call) Run

func (_c *XCCommandRunner_Run_Call) Run(run func(workDir string, xcodebuildOpts []string, logFormatterOpts []string)) *XCCommandRunner_Run_Call

func (*XCCommandRunner_Run_Call) RunAndReturn

func (_c *XCCommandRunner_Run_Call) RunAndReturn(run func(workDir string, xcodebuildOpts []string, logFormatterOpts []string) (xcodecommand.Output, error)) *XCCommandRunner_Run_Call

type XCVersionReader

type XCVersionReader struct {
	mock.Mock
}

XCVersionReader is an autogenerated mock type for the Reader type

func NewXCVersionReader

func NewXCVersionReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *XCVersionReader

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

func (*XCVersionReader) GetVersion

func (_mock *XCVersionReader) GetVersion() (xcodeversion.Version, error)

GetVersion provides a mock function for the type XCVersionReader

type XCVersionReader_Expecter

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

func (*XCVersionReader_Expecter) GetVersion

GetVersion is a helper method to define mock.On call

type XCVersionReader_GetVersion_Call

type XCVersionReader_GetVersion_Call struct {
	*mock.Call
}

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

func (*XCVersionReader_GetVersion_Call) Return

func (*XCVersionReader_GetVersion_Call) Run

func (*XCVersionReader_GetVersion_Call) RunAndReturn

type XcodeProject

type XcodeProject struct {
	mock.Mock
}

XcodeProject is an autogenerated mock type for the XcodeProject type

func NewXcodeProject

func NewXcodeProject(t interface {
	mock.TestingT
	Cleanup(func())
}) *XcodeProject

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

func (_m *XcodeProject) EXPECT() *XcodeProject_Expecter

func (*XcodeProject) Scheme

func (_mock *XcodeProject) Scheme(pth string, name string) (*xcscheme.Scheme, error)

Scheme provides a mock function for the type XcodeProject

type XcodeProject_Expecter

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

func (*XcodeProject_Expecter) Scheme

func (_e *XcodeProject_Expecter) Scheme(pth interface{}, name interface{}) *XcodeProject_Scheme_Call

Scheme is a helper method to define mock.On call

  • pth string
  • name string

type XcodeProject_Scheme_Call

type XcodeProject_Scheme_Call struct {
	*mock.Call
}

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

func (*XcodeProject_Scheme_Call) Return

func (*XcodeProject_Scheme_Call) Run

func (_c *XcodeProject_Scheme_Call) Run(run func(pth string, name string)) *XcodeProject_Scheme_Call

func (*XcodeProject_Scheme_Call) RunAndReturn

func (_c *XcodeProject_Scheme_Call) RunAndReturn(run func(pth string, name string) (*xcscheme.Scheme, error)) *XcodeProject_Scheme_Call

Jump to

Keyboard shortcuts

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