Documentation
¶
Index ¶
- type Command
- func (_m *Command) PrintableCommandArgs() string
- func (_m *Command) Run() error
- func (_m *Command) RunAndReturnExitCode() (int, error)
- func (_m *Command) RunAndReturnTrimmedCombinedOutput() (string, error)
- func (_m *Command) RunAndReturnTrimmedOutput() (string, error)
- func (_m *Command) Start() error
- func (_m *Command) Wait() error
- type CommandFactory
- type FileManager
- func (_m *FileManager) FileSizeInBytes(pth string) (int64, error)
- func (_m *FileManager) Open(path string) (*os.File, error)
- func (_m *FileManager) OpenReaderIfExists(path string) (io.Reader, error)
- func (_m *FileManager) ReadDirEntryNames(path string) ([]string, error)
- func (_m *FileManager) Remove(path string) error
- func (_m *FileManager) RemoveAll(path string) error
- func (_m *FileManager) Write(path string, value string, perm fs.FileMode) error
- func (_m *FileManager) WriteBytes(path string, value []byte) error
- type PathChecker
- type PathModifier
- type PathProvider
- type RubyCommandFactory
- func (_m *RubyCommandFactory) Create(name string, args []string, opts *command.Opts) command.Command
- func (_m *RubyCommandFactory) CreateBundleExec(name string, args []string, bundlerVersion string, opts *command.Opts) command.Command
- func (_m *RubyCommandFactory) CreateBundleInstall(bundlerVersion string, opts *command.Opts) command.Command
- func (_m *RubyCommandFactory) CreateGemInstall(gem string, version string, enablePrerelease bool, force bool, ...) []command.Command
- func (_m *RubyCommandFactory) CreateGemUpdate(gem string, opts *command.Opts) []command.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
Command is an autogenerated mock type for the Command type
func NewCommand ¶
NewCommand creates a new instance of Command. 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 (*Command) PrintableCommandArgs ¶
PrintableCommandArgs provides a mock function with given fields:
func (*Command) RunAndReturnExitCode ¶
RunAndReturnExitCode provides a mock function with given fields:
func (*Command) RunAndReturnTrimmedCombinedOutput ¶
RunAndReturnTrimmedCombinedOutput provides a mock function with given fields:
func (*Command) RunAndReturnTrimmedOutput ¶
RunAndReturnTrimmedOutput provides a mock function with given fields:
type CommandFactory ¶
CommandFactory is an autogenerated mock type for the Factory type
type FileManager ¶
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) FileSizeInBytes ¶
func (_m *FileManager) FileSizeInBytes(pth string) (int64, error)
FileSizeInBytes provides a mock function with given fields: pth
func (*FileManager) Open ¶
func (_m *FileManager) Open(path string) (*os.File, error)
Open provides a mock function with given fields: path
func (*FileManager) OpenReaderIfExists ¶
func (_m *FileManager) OpenReaderIfExists(path string) (io.Reader, error)
OpenReaderIfExists provides a mock function with given fields: path
func (*FileManager) ReadDirEntryNames ¶
func (_m *FileManager) ReadDirEntryNames(path string) ([]string, error)
ReadDirEntryNames provides a mock function with given fields: path
func (*FileManager) Remove ¶
func (_m *FileManager) Remove(path string) error
Remove provides a mock function with given fields: path
func (*FileManager) RemoveAll ¶
func (_m *FileManager) RemoveAll(path string) error
RemoveAll provides a mock function with given fields: path
func (*FileManager) WriteBytes ¶
func (_m *FileManager) WriteBytes(path string, value []byte) error
WriteBytes provides a mock function with given fields: path, value
type PathChecker ¶
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) IsDirExists ¶
func (_m *PathChecker) IsDirExists(pth string) (bool, error)
IsDirExists provides a mock function with given fields: pth
func (*PathChecker) IsPathExists ¶
func (_m *PathChecker) IsPathExists(pth string) (bool, error)
IsPathExists provides a mock function with given fields: pth
type PathModifier ¶
PathModifier is an autogenerated mock type for the PathModifier type
func NewPathModifier ¶
func NewPathModifier(t interface { mock.TestingT Cleanup(func()) }) *PathModifier
NewPathModifier creates a new instance of PathModifier. 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.
type PathProvider ¶
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 (_m *PathProvider) CreateTempDir(prefix string) (string, error)
CreateTempDir provides a mock function with given fields: prefix
type RubyCommandFactory ¶
RubyCommandFactory is an autogenerated mock type for the CommandFactory type
func NewRubyCommandFactory ¶
func NewRubyCommandFactory(t mockConstructorTestingTNewRubyCommandFactory) *RubyCommandFactory
NewRubyCommandFactory creates a new instance of RubyCommandFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RubyCommandFactory) Create ¶
func (_m *RubyCommandFactory) Create(name string, args []string, opts *command.Opts) command.Command
Create provides a mock function with given fields: name, args, opts
func (*RubyCommandFactory) CreateBundleExec ¶
func (_m *RubyCommandFactory) CreateBundleExec(name string, args []string, bundlerVersion string, opts *command.Opts) command.Command
CreateBundleExec provides a mock function with given fields: name, args, bundlerVersion, opts
func (*RubyCommandFactory) CreateBundleInstall ¶
func (_m *RubyCommandFactory) CreateBundleInstall(bundlerVersion string, opts *command.Opts) command.Command
CreateBundleInstall provides a mock function with given fields: bundlerVersion, opts
func (*RubyCommandFactory) CreateGemInstall ¶
func (_m *RubyCommandFactory) CreateGemInstall(gem string, version string, enablePrerelease bool, force bool, opts *command.Opts) []command.Command
CreateGemInstall provides a mock function with given fields: gem, version, enablePrerelease, force, opts
func (*RubyCommandFactory) CreateGemUpdate ¶
CreateGemUpdate provides a mock function with given fields: gem, opts