mocks

package
v2.0.0-alpha.42 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	mock.Mock
}

Command is an autogenerated mock type for the Command type

func NewCommand

func NewCommand(t interface {
	mock.TestingT
	Cleanup(func())
}) *Command

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

func (_m *Command) PrintableCommandArgs() string

PrintableCommandArgs provides a mock function with given fields:

func (*Command) Run

func (_m *Command) Run() error

Run provides a mock function with given fields:

func (*Command) RunAndReturnExitCode

func (_m *Command) RunAndReturnExitCode() (int, error)

RunAndReturnExitCode provides a mock function with given fields:

func (*Command) RunAndReturnTrimmedCombinedOutput

func (_m *Command) RunAndReturnTrimmedCombinedOutput() (string, error)

RunAndReturnTrimmedCombinedOutput provides a mock function with given fields:

func (*Command) RunAndReturnTrimmedOutput

func (_m *Command) RunAndReturnTrimmedOutput() (string, error)

RunAndReturnTrimmedOutput provides a mock function with given fields:

func (*Command) Start

func (_m *Command) Start() error

Start provides a mock function with given fields:

func (*Command) Wait

func (_m *Command) Wait() error

Wait provides a mock function with given fields:

type CommandFactory

type CommandFactory struct {
	mock.Mock
}

CommandFactory is an autogenerated mock type for the Factory type

func (*CommandFactory) Create

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

Create provides a mock function with given fields: name, args, 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) 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) Write

func (_m *FileManager) Write(path string, value string, perm fs.FileMode) error

Write provides a mock function with given fields: path, value, perm

func (*FileManager) WriteBytes

func (_m *FileManager) WriteBytes(path string, value []byte) error

WriteBytes provides a mock function with given fields: path, value

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) 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

type PathModifier struct {
	mock.Mock
}

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.

func (*PathModifier) AbsPath

func (_m *PathModifier) AbsPath(pth string) (string, error)

AbsPath provides a mock function with given fields: pth

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 (_m *PathProvider) CreateTempDir(prefix string) (string, error)

CreateTempDir provides a mock function with given fields: prefix

type RubyCommandFactory

type RubyCommandFactory struct {
	mock.Mock
}

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

func (_m *RubyCommandFactory) CreateGemUpdate(gem string, opts *command.Opts) []command.Command

CreateGemUpdate provides a mock function with given fields: gem, opts

type ZipFile

type ZipFile struct {
	mock.Mock
}

ZipFile is an autogenerated mock type for the File type

func NewZipFile

func NewZipFile(t mockConstructorTestingTNewZipFile) *ZipFile

NewZipFile creates a new instance of ZipFile. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ZipFile) Name

func (_m *ZipFile) Name() string

Name provides a mock function with given fields:

func (*ZipFile) Open

func (_m *ZipFile) Open() (io.ReadCloser, error)

Open provides a mock function with given fields:

type ZipReadCloser

type ZipReadCloser struct {
	mock.Mock
}

ZipReadCloser is an autogenerated mock type for the ReadCloser type

func NewZipReadCloser

func NewZipReadCloser(t mockConstructorTestingTNewZipReadCloser) *ZipReadCloser

NewZipReadCloser creates a new instance of ZipReadCloser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ZipReadCloser) Close

func (_m *ZipReadCloser) Close() error

Close provides a mock function with given fields:

func (*ZipReadCloser) Files

func (_m *ZipReadCloser) Files() []zip.File

Files provides a mock function with given fields:

Jump to

Keyboard shortcuts

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