Documentation
¶
Index ¶
- type Archiver
- type ConfigReader
- type Downloader
- type FileInfo
- func (mock FileInfo) IsDir() bool
- func (mock FileInfo) ModTime() time.Time
- func (mock FileInfo) Mode() os.FileMode
- func (mock FileInfo) Name() string
- func (mock *FileInfo) SetFuncIsDir(impl func() bool) *FileInfo
- func (mock *FileInfo) SetFuncModTime(impl func() time.Time) *FileInfo
- func (mock *FileInfo) SetFuncMode(impl func() os.FileMode) *FileInfo
- func (mock *FileInfo) SetFuncName(impl func() string) *FileInfo
- func (mock *FileInfo) SetFuncSize(impl func() int64) *FileInfo
- func (mock *FileInfo) SetFuncSys(impl func() interface{}) *FileInfo
- func (mock *FileInfo) SetReturnIsDir(r0 bool) *FileInfo
- func (mock *FileInfo) SetReturnModTime(r0 time.Time) *FileInfo
- func (mock *FileInfo) SetReturnMode(r0 os.FileMode) *FileInfo
- func (mock *FileInfo) SetReturnName(r0 string) *FileInfo
- func (mock *FileInfo) SetReturnSize(r0 int64) *FileInfo
- func (mock *FileInfo) SetReturnSys(r0 interface{}) *FileInfo
- func (mock FileInfo) Size() int64
- func (mock FileInfo) Sys() interface{}
- type FileSystem
- func (mock FileSystem) Chmod(name string, mode os.FileMode) error
- func (mock FileSystem) Copy(dst io.Writer, src io.Reader) (int64, error)
- func (mock FileSystem) ExistFile(p0 string) bool
- func (mock FileSystem) ExpandEnv(p0 string) string
- func (mock FileSystem) GetFileLstat(p0 string) (os.FileInfo, error)
- func (mock FileSystem) GetFileStat(p0 string) (os.FileInfo, error)
- func (mock FileSystem) Getwd() (string, error)
- func (mock FileSystem) MkLink(src, dst string) error
- func (mock FileSystem) MkdirAll(p0 string) error
- func (mock FileSystem) Open(name string) (io.ReadCloser, error)
- func (mock FileSystem) OpenFile(name string, flag int, perm os.FileMode) (io.WriteCloser, error)
- func (mock FileSystem) ReadLink(p0 string) (string, error)
- func (mock FileSystem) RemoveAll(p0 string) error
- func (mock FileSystem) RemoveFile(p0 string) error
- func (mock FileSystem) RemoveLink(p0 string) error
- func (mock *FileSystem) SetFuncChmod(impl func(name string, mode os.FileMode) error) *FileSystem
- func (mock *FileSystem) SetFuncCopy(impl func(dst io.Writer, src io.Reader) (int64, error)) *FileSystem
- func (mock *FileSystem) SetFuncExistFile(impl func(p0 string) bool) *FileSystem
- func (mock *FileSystem) SetFuncExpandEnv(impl func(p0 string) string) *FileSystem
- func (mock *FileSystem) SetFuncGetFileLstat(impl func(p0 string) (os.FileInfo, error)) *FileSystem
- func (mock *FileSystem) SetFuncGetFileStat(impl func(p0 string) (os.FileInfo, error)) *FileSystem
- func (mock *FileSystem) SetFuncGetwd(impl func() (string, error)) *FileSystem
- func (mock *FileSystem) SetFuncMkLink(impl func(src, dst string) error) *FileSystem
- func (mock *FileSystem) SetFuncMkdirAll(impl func(p0 string) error) *FileSystem
- func (mock *FileSystem) SetFuncOpen(impl func(name string) (io.ReadCloser, error)) *FileSystem
- func (mock *FileSystem) SetFuncOpenFile(impl func(name string, flag int, perm os.FileMode) (io.WriteCloser, error)) *FileSystem
- func (mock *FileSystem) SetFuncReadLink(impl func(p0 string) (string, error)) *FileSystem
- func (mock *FileSystem) SetFuncRemoveAll(impl func(p0 string) error) *FileSystem
- func (mock *FileSystem) SetFuncRemoveFile(impl func(p0 string) error) *FileSystem
- func (mock *FileSystem) SetFuncRemoveLink(impl func(p0 string) error) *FileSystem
- func (mock *FileSystem) SetFuncTempDir(impl func() (string, error)) *FileSystem
- func (mock *FileSystem) SetFuncWriteFile(impl func(dest string, data []byte) error) *FileSystem
- func (mock *FileSystem) SetReturnChmod(r0 error) *FileSystem
- func (mock *FileSystem) SetReturnCopy(r0 int64, r1 error) *FileSystem
- func (mock *FileSystem) SetReturnExistFile(r0 bool) *FileSystem
- func (mock *FileSystem) SetReturnExpandEnv(r0 string) *FileSystem
- func (mock *FileSystem) SetReturnGetFileLstat(r0 os.FileInfo, r1 error) *FileSystem
- func (mock *FileSystem) SetReturnGetFileStat(r0 os.FileInfo, r1 error) *FileSystem
- func (mock *FileSystem) SetReturnGetwd(r0 string, r1 error) *FileSystem
- func (mock *FileSystem) SetReturnMkLink(r0 error) *FileSystem
- func (mock *FileSystem) SetReturnMkdirAll(r0 error) *FileSystem
- func (mock *FileSystem) SetReturnOpen(r0 io.ReadCloser, r1 error) *FileSystem
- func (mock *FileSystem) SetReturnOpenFile(r0 io.WriteCloser, r1 error) *FileSystem
- func (mock *FileSystem) SetReturnReadLink(r0 string, r1 error) *FileSystem
- func (mock *FileSystem) SetReturnRemoveAll(r0 error) *FileSystem
- func (mock *FileSystem) SetReturnRemoveFile(r0 error) *FileSystem
- func (mock *FileSystem) SetReturnRemoveLink(r0 error) *FileSystem
- func (mock *FileSystem) SetReturnTempDir(r0 string, r1 error) *FileSystem
- func (mock *FileSystem) SetReturnWriteFile(r0 error) *FileSystem
- func (mock FileSystem) TempDir() (string, error)
- func (mock FileSystem) WriteFile(dest string, data []byte) error
- type GetArchiver
- type GetGzipReader
- type Logic
- func (mock Logic) CreateLink(file test.File) (test.File, error)
- func (mock Logic) GetInstalledFiles(files []test.File) []test.File
- func (mock Logic) Install(ctx context.Context, params test.InstallParams) (test.Result, error)
- func (mock Logic) InstallFile(file *test.File, pkg test.Package, params test.InstallParams, tmpDir string, ...) error
- func (mock Logic) InstallPackage(ctx context.Context, pkg test.Package, params test.InstallParams) (test.Package, error)
- func (mock Logic) RecreateLink(file test.File) (test.File, error)
- func (mock Logic) RemoveFileAndCreateLink(file test.File) (test.File, error)
- func (mock *Logic) SetFuncCreateLink(impl func(file test.File) (test.File, error)) *Logic
- func (mock *Logic) SetFuncGetInstalledFiles(impl func(files []test.File) []test.File) *Logic
- func (mock *Logic) SetFuncInstall(impl func(ctx context.Context, params test.InstallParams) (test.Result, error)) *Logic
- func (mock *Logic) SetFuncInstallFile(...) *Logic
- func (mock *Logic) SetFuncInstallPackage(...) *Logic
- func (mock *Logic) SetFuncRecreateLink(impl func(file test.File) (test.File, error)) *Logic
- func (mock *Logic) SetFuncRemoveFileAndCreateLink(impl func(file test.File) (test.File, error)) *Logic
- func (mock *Logic) SetFuncSetupConfig(impl func(cfg test.Config, cfgPath string) (test.Config, error)) *Logic
- func (mock *Logic) SetFuncSetupFileConfig(impl func(pkg test.Package, cfgDir string, file test.File) (test.File, error)) *Logic
- func (mock *Logic) SetFuncSetupPkgConfig(...) *Logic
- func (mock *Logic) SetReturnCreateLink(r0 test.File, r1 error) *Logic
- func (mock *Logic) SetReturnGetInstalledFiles(r0 []test.File) *Logic
- func (mock *Logic) SetReturnInstall(r0 test.Result, r1 error) *Logic
- func (mock *Logic) SetReturnInstallFile(r0 error) *Logic
- func (mock *Logic) SetReturnInstallPackage(r0 test.Package, r1 error) *Logic
- func (mock *Logic) SetReturnRecreateLink(r0 test.File, r1 error) *Logic
- func (mock *Logic) SetReturnRemoveFileAndCreateLink(r0 test.File, r1 error) *Logic
- func (mock *Logic) SetReturnSetupConfig(r0 test.Config, r1 error) *Logic
- func (mock *Logic) SetReturnSetupFileConfig(r0 test.File, r1 error) *Logic
- func (mock *Logic) SetReturnSetupPkgConfig(r0 test.Package, r1 error) *Logic
- func (mock Logic) SetupConfig(cfg test.Config, cfgPath string) (test.Config, error)
- func (mock Logic) SetupFileConfig(pkg test.Package, cfgDir string, file test.File) (test.File, error)
- func (mock Logic) SetupPkgConfig(cfg test.Config, cfgDir, name string, pkg test.Package, numCPUs int) (test.Package, error)
- type Printer
- func (mock Printer) Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error)
- func (mock Printer) Fprintln(w io.Writer, a ...interface{}) (n int, err error)
- func (mock Printer) Printf(format string, a ...interface{}) (n int, err error)
- func (mock Printer) Println(a ...interface{}) (n int, err error)
- func (mock *Printer) SetFuncFprintf(impl func(w io.Writer, format string, a ...interface{}) (n int, err error)) *Printer
- func (mock *Printer) SetFuncFprintln(impl func(w io.Writer, a ...interface{}) (n int, err error)) *Printer
- func (mock *Printer) SetFuncPrintf(impl func(format string, a ...interface{}) (n int, err error)) *Printer
- func (mock *Printer) SetFuncPrintln(impl func(a ...interface{}) (n int, err error)) *Printer
- func (mock *Printer) SetReturnFprintf(n int, err error) *Printer
- func (mock *Printer) SetReturnFprintln(n int, err error) *Printer
- func (mock *Printer) SetReturnPrintf(n int, err error) *Printer
- func (mock *Printer) SetReturnPrintln(n int, err error) *Printer
- type Runtime
- func (mock Runtime) Arch() string
- func (mock Runtime) NumCPU() int
- func (mock Runtime) OS() string
- func (mock *Runtime) SetFuncArch(impl func() string) *Runtime
- func (mock *Runtime) SetFuncNumCPU(impl func() int) *Runtime
- func (mock *Runtime) SetFuncOS(impl func() string) *Runtime
- func (mock *Runtime) SetReturnArch(r0 string) *Runtime
- func (mock *Runtime) SetReturnNumCPU(r0 int) *Runtime
- func (mock *Runtime) SetReturnOS(r0 string) *Runtime
- type WriteCloser
- func (mock WriteCloser) Close() error
- func (mock *WriteCloser) SetFuncClose(impl func() error) *WriteCloser
- func (mock *WriteCloser) SetFuncWrite(impl func(p []byte) (n int, err error)) *WriteCloser
- func (mock *WriteCloser) SetReturnClose(r0 error) *WriteCloser
- func (mock *WriteCloser) SetReturnWrite(n int, err error) *WriteCloser
- func (mock WriteCloser) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Archiver ¶
type Archiver struct {
// contains filtered or unexported fields
}
Archiver is a mock.
func NewArchiver ¶
func NewArchiver(t *testing.T, cb gomic.CallbackNotImplemented) *Archiver
NewArchiver returns Archiver .
func (*Archiver) SetFuncRead ¶
SetFuncRead sets a method and returns the mock.
func (*Archiver) SetReturnRead ¶
SetReturnRead sets a fake method.
type ConfigReader ¶
type ConfigReader struct {
// contains filtered or unexported fields
}
ConfigReader is a mock.
func NewConfigReader ¶
func NewConfigReader(t *testing.T, cb gomic.CallbackNotImplemented) *ConfigReader
NewConfigReader returns ConfigReader .
func (ConfigReader) Read ¶
func (mock ConfigReader) Read(p0 string) (test.Config, error)
Read is a mock method.
func (*ConfigReader) SetFuncRead ¶
func (mock *ConfigReader) SetFuncRead(impl func(p0 string) (test.Config, error)) *ConfigReader
SetFuncRead sets a method and returns the mock.
func (*ConfigReader) SetReturnRead ¶
func (mock *ConfigReader) SetReturnRead(r0 test.Config, r1 error) *ConfigReader
SetReturnRead sets a fake method.
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
Downloader is a mock.
func NewDownloader ¶
func NewDownloader(t *testing.T, cb gomic.CallbackNotImplemented) *Downloader
NewDownloader returns Downloader .
func (Downloader) Download ¶
func (mock Downloader) Download(ctx context.Context, uri string, option test.DownloadOption) (io.ReadCloser, error)
Download is a mock method.
func (*Downloader) SetFuncDownload ¶
func (mock *Downloader) SetFuncDownload(impl func(ctx context.Context, uri string, option test.DownloadOption) (io.ReadCloser, error)) *Downloader
SetFuncDownload sets a method and returns the mock.
func (*Downloader) SetReturnDownload ¶
func (mock *Downloader) SetReturnDownload(r0 io.ReadCloser, r1 error) *Downloader
SetReturnDownload sets a fake method.
type FileInfo ¶
type FileInfo struct {
// contains filtered or unexported fields
}
FileInfo is a mock.
func NewFileInfo ¶
func NewFileInfo(t *testing.T, cb gomic.CallbackNotImplemented) *FileInfo
NewFileInfo returns FileInfo .
func (*FileInfo) SetFuncIsDir ¶
SetFuncIsDir sets a method and returns the mock.
func (*FileInfo) SetFuncModTime ¶
SetFuncModTime sets a method and returns the mock.
func (*FileInfo) SetFuncMode ¶
SetFuncMode sets a method and returns the mock.
func (*FileInfo) SetFuncName ¶
SetFuncName sets a method and returns the mock.
func (*FileInfo) SetFuncSize ¶
SetFuncSize sets a method and returns the mock.
func (*FileInfo) SetFuncSys ¶
SetFuncSys sets a method and returns the mock.
func (*FileInfo) SetReturnIsDir ¶
SetReturnIsDir sets a fake method.
func (*FileInfo) SetReturnModTime ¶
SetReturnModTime sets a fake method.
func (*FileInfo) SetReturnMode ¶
SetReturnMode sets a fake method.
func (*FileInfo) SetReturnName ¶
SetReturnName sets a fake method.
func (*FileInfo) SetReturnSize ¶
SetReturnSize sets a fake method.
func (*FileInfo) SetReturnSys ¶
SetReturnSys sets a fake method.
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
FileSystem is a mock.
func NewFileSystem ¶
func NewFileSystem(t *testing.T, cb gomic.CallbackNotImplemented) *FileSystem
NewFileSystem returns FileSystem .
func (FileSystem) Chmod ¶
func (mock FileSystem) Chmod(name string, mode os.FileMode) error
Chmod is a mock method.
func (FileSystem) ExistFile ¶
func (mock FileSystem) ExistFile(p0 string) bool
ExistFile is a mock method.
func (FileSystem) ExpandEnv ¶
func (mock FileSystem) ExpandEnv(p0 string) string
ExpandEnv is a mock method.
func (FileSystem) GetFileLstat ¶
func (mock FileSystem) GetFileLstat(p0 string) (os.FileInfo, error)
GetFileLstat is a mock method.
func (FileSystem) GetFileStat ¶
func (mock FileSystem) GetFileStat(p0 string) (os.FileInfo, error)
GetFileStat is a mock method.
func (FileSystem) MkLink ¶
func (mock FileSystem) MkLink(src, dst string) error
MkLink is a mock method.
func (FileSystem) MkdirAll ¶
func (mock FileSystem) MkdirAll(p0 string) error
MkdirAll is a mock method.
func (FileSystem) Open ¶
func (mock FileSystem) Open(name string) (io.ReadCloser, error)
Open is a mock method.
func (FileSystem) OpenFile ¶
func (mock FileSystem) OpenFile(name string, flag int, perm os.FileMode) (io.WriteCloser, error)
OpenFile is a mock method.
func (FileSystem) ReadLink ¶
func (mock FileSystem) ReadLink(p0 string) (string, error)
ReadLink is a mock method.
func (FileSystem) RemoveAll ¶
func (mock FileSystem) RemoveAll(p0 string) error
RemoveAll is a mock method.
func (FileSystem) RemoveFile ¶
func (mock FileSystem) RemoveFile(p0 string) error
RemoveFile is a mock method.
func (FileSystem) RemoveLink ¶
func (mock FileSystem) RemoveLink(p0 string) error
RemoveLink is a mock method.
func (*FileSystem) SetFuncChmod ¶
func (mock *FileSystem) SetFuncChmod(impl func(name string, mode os.FileMode) error) *FileSystem
SetFuncChmod sets a method and returns the mock.
func (*FileSystem) SetFuncCopy ¶
func (mock *FileSystem) SetFuncCopy(impl func(dst io.Writer, src io.Reader) (int64, error)) *FileSystem
SetFuncCopy sets a method and returns the mock.
func (*FileSystem) SetFuncExistFile ¶
func (mock *FileSystem) SetFuncExistFile(impl func(p0 string) bool) *FileSystem
SetFuncExistFile sets a method and returns the mock.
func (*FileSystem) SetFuncExpandEnv ¶
func (mock *FileSystem) SetFuncExpandEnv(impl func(p0 string) string) *FileSystem
SetFuncExpandEnv sets a method and returns the mock.
func (*FileSystem) SetFuncGetFileLstat ¶
func (mock *FileSystem) SetFuncGetFileLstat(impl func(p0 string) (os.FileInfo, error)) *FileSystem
SetFuncGetFileLstat sets a method and returns the mock.
func (*FileSystem) SetFuncGetFileStat ¶
func (mock *FileSystem) SetFuncGetFileStat(impl func(p0 string) (os.FileInfo, error)) *FileSystem
SetFuncGetFileStat sets a method and returns the mock.
func (*FileSystem) SetFuncGetwd ¶
func (mock *FileSystem) SetFuncGetwd(impl func() (string, error)) *FileSystem
SetFuncGetwd sets a method and returns the mock.
func (*FileSystem) SetFuncMkLink ¶
func (mock *FileSystem) SetFuncMkLink(impl func(src, dst string) error) *FileSystem
SetFuncMkLink sets a method and returns the mock.
func (*FileSystem) SetFuncMkdirAll ¶
func (mock *FileSystem) SetFuncMkdirAll(impl func(p0 string) error) *FileSystem
SetFuncMkdirAll sets a method and returns the mock.
func (*FileSystem) SetFuncOpen ¶
func (mock *FileSystem) SetFuncOpen(impl func(name string) (io.ReadCloser, error)) *FileSystem
SetFuncOpen sets a method and returns the mock.
func (*FileSystem) SetFuncOpenFile ¶
func (mock *FileSystem) SetFuncOpenFile(impl func(name string, flag int, perm os.FileMode) (io.WriteCloser, error)) *FileSystem
SetFuncOpenFile sets a method and returns the mock.
func (*FileSystem) SetFuncReadLink ¶
func (mock *FileSystem) SetFuncReadLink(impl func(p0 string) (string, error)) *FileSystem
SetFuncReadLink sets a method and returns the mock.
func (*FileSystem) SetFuncRemoveAll ¶
func (mock *FileSystem) SetFuncRemoveAll(impl func(p0 string) error) *FileSystem
SetFuncRemoveAll sets a method and returns the mock.
func (*FileSystem) SetFuncRemoveFile ¶
func (mock *FileSystem) SetFuncRemoveFile(impl func(p0 string) error) *FileSystem
SetFuncRemoveFile sets a method and returns the mock.
func (*FileSystem) SetFuncRemoveLink ¶
func (mock *FileSystem) SetFuncRemoveLink(impl func(p0 string) error) *FileSystem
SetFuncRemoveLink sets a method and returns the mock.
func (*FileSystem) SetFuncTempDir ¶
func (mock *FileSystem) SetFuncTempDir(impl func() (string, error)) *FileSystem
SetFuncTempDir sets a method and returns the mock.
func (*FileSystem) SetFuncWriteFile ¶
func (mock *FileSystem) SetFuncWriteFile(impl func(dest string, data []byte) error) *FileSystem
SetFuncWriteFile sets a method and returns the mock.
func (*FileSystem) SetReturnChmod ¶
func (mock *FileSystem) SetReturnChmod(r0 error) *FileSystem
SetReturnChmod sets a fake method.
func (*FileSystem) SetReturnCopy ¶
func (mock *FileSystem) SetReturnCopy(r0 int64, r1 error) *FileSystem
SetReturnCopy sets a fake method.
func (*FileSystem) SetReturnExistFile ¶
func (mock *FileSystem) SetReturnExistFile(r0 bool) *FileSystem
SetReturnExistFile sets a fake method.
func (*FileSystem) SetReturnExpandEnv ¶
func (mock *FileSystem) SetReturnExpandEnv(r0 string) *FileSystem
SetReturnExpandEnv sets a fake method.
func (*FileSystem) SetReturnGetFileLstat ¶
func (mock *FileSystem) SetReturnGetFileLstat(r0 os.FileInfo, r1 error) *FileSystem
SetReturnGetFileLstat sets a fake method.
func (*FileSystem) SetReturnGetFileStat ¶
func (mock *FileSystem) SetReturnGetFileStat(r0 os.FileInfo, r1 error) *FileSystem
SetReturnGetFileStat sets a fake method.
func (*FileSystem) SetReturnGetwd ¶
func (mock *FileSystem) SetReturnGetwd(r0 string, r1 error) *FileSystem
SetReturnGetwd sets a fake method.
func (*FileSystem) SetReturnMkLink ¶
func (mock *FileSystem) SetReturnMkLink(r0 error) *FileSystem
SetReturnMkLink sets a fake method.
func (*FileSystem) SetReturnMkdirAll ¶
func (mock *FileSystem) SetReturnMkdirAll(r0 error) *FileSystem
SetReturnMkdirAll sets a fake method.
func (*FileSystem) SetReturnOpen ¶
func (mock *FileSystem) SetReturnOpen(r0 io.ReadCloser, r1 error) *FileSystem
SetReturnOpen sets a fake method.
func (*FileSystem) SetReturnOpenFile ¶
func (mock *FileSystem) SetReturnOpenFile(r0 io.WriteCloser, r1 error) *FileSystem
SetReturnOpenFile sets a fake method.
func (*FileSystem) SetReturnReadLink ¶
func (mock *FileSystem) SetReturnReadLink(r0 string, r1 error) *FileSystem
SetReturnReadLink sets a fake method.
func (*FileSystem) SetReturnRemoveAll ¶
func (mock *FileSystem) SetReturnRemoveAll(r0 error) *FileSystem
SetReturnRemoveAll sets a fake method.
func (*FileSystem) SetReturnRemoveFile ¶
func (mock *FileSystem) SetReturnRemoveFile(r0 error) *FileSystem
SetReturnRemoveFile sets a fake method.
func (*FileSystem) SetReturnRemoveLink ¶
func (mock *FileSystem) SetReturnRemoveLink(r0 error) *FileSystem
SetReturnRemoveLink sets a fake method.
func (*FileSystem) SetReturnTempDir ¶
func (mock *FileSystem) SetReturnTempDir(r0 string, r1 error) *FileSystem
SetReturnTempDir sets a fake method.
func (*FileSystem) SetReturnWriteFile ¶
func (mock *FileSystem) SetReturnWriteFile(r0 error) *FileSystem
SetReturnWriteFile sets a fake method.
func (FileSystem) TempDir ¶
func (mock FileSystem) TempDir() (string, error)
TempDir is a mock method.
type GetArchiver ¶
type GetArchiver struct {
// contains filtered or unexported fields
}
GetArchiver is a mock.
func NewGetArchiver ¶
func NewGetArchiver(t *testing.T, cb gomic.CallbackNotImplemented) *GetArchiver
NewGetArchiver returns GetArchiver .
func (GetArchiver) Get ¶
func (mock GetArchiver) Get(fpath, ftype string) test.Archiver
Get is a mock method.
func (*GetArchiver) SetFuncGet ¶
func (mock *GetArchiver) SetFuncGet(impl func(fpath, ftype string) test.Archiver) *GetArchiver
SetFuncGet sets a method and returns the mock.
func (*GetArchiver) SetReturnGet ¶
func (mock *GetArchiver) SetReturnGet(r0 test.Archiver) *GetArchiver
SetReturnGet sets a fake method.
type GetGzipReader ¶
type GetGzipReader struct {
// contains filtered or unexported fields
}
GetGzipReader is a mock.
func NewGetGzipReader ¶
func NewGetGzipReader(t *testing.T, cb gomic.CallbackNotImplemented) *GetGzipReader
NewGetGzipReader returns GetGzipReader .
func (GetGzipReader) Get ¶
func (mock GetGzipReader) Get(p0 io.Reader) (io.ReadCloser, error)
Get is a mock method.
func (*GetGzipReader) SetFuncGet ¶
func (mock *GetGzipReader) SetFuncGet(impl func(p0 io.Reader) (io.ReadCloser, error)) *GetGzipReader
SetFuncGet sets a method and returns the mock.
func (*GetGzipReader) SetReturnGet ¶
func (mock *GetGzipReader) SetReturnGet(r0 io.ReadCloser, r1 error) *GetGzipReader
SetReturnGet sets a fake method.
type Logic ¶
type Logic struct {
// contains filtered or unexported fields
}
Logic is a mock.
func NewLogic ¶
func NewLogic(t *testing.T, cb gomic.CallbackNotImplemented) *Logic
NewLogic returns Logic .
func (Logic) CreateLink ¶
CreateLink is a mock method.
func (Logic) GetInstalledFiles ¶
GetInstalledFiles is a mock method.
func (Logic) InstallFile ¶
func (mock Logic) InstallFile(file *test.File, pkg test.Package, params test.InstallParams, tmpDir string, body io.Reader) error
InstallFile is a mock method.
func (Logic) InstallPackage ¶
func (mock Logic) InstallPackage(ctx context.Context, pkg test.Package, params test.InstallParams) (test.Package, error)
InstallPackage is a mock method.
func (Logic) RecreateLink ¶
RecreateLink is a mock method.
func (Logic) RemoveFileAndCreateLink ¶
RemoveFileAndCreateLink is a mock method.
func (*Logic) SetFuncCreateLink ¶
SetFuncCreateLink sets a method and returns the mock.
func (*Logic) SetFuncGetInstalledFiles ¶
SetFuncGetInstalledFiles sets a method and returns the mock.
func (*Logic) SetFuncInstall ¶
func (mock *Logic) SetFuncInstall(impl func(ctx context.Context, params test.InstallParams) (test.Result, error)) *Logic
SetFuncInstall sets a method and returns the mock.
func (*Logic) SetFuncInstallFile ¶
func (mock *Logic) SetFuncInstallFile(impl func(file *test.File, pkg test.Package, params test.InstallParams, tmpDir string, body io.Reader) error) *Logic
SetFuncInstallFile sets a method and returns the mock.
func (*Logic) SetFuncInstallPackage ¶
func (mock *Logic) SetFuncInstallPackage(impl func(ctx context.Context, pkg test.Package, params test.InstallParams) (test.Package, error)) *Logic
SetFuncInstallPackage sets a method and returns the mock.
func (*Logic) SetFuncRecreateLink ¶
SetFuncRecreateLink sets a method and returns the mock.
func (*Logic) SetFuncRemoveFileAndCreateLink ¶
func (mock *Logic) SetFuncRemoveFileAndCreateLink(impl func(file test.File) (test.File, error)) *Logic
SetFuncRemoveFileAndCreateLink sets a method and returns the mock.
func (*Logic) SetFuncSetupConfig ¶
func (mock *Logic) SetFuncSetupConfig(impl func(cfg test.Config, cfgPath string) (test.Config, error)) *Logic
SetFuncSetupConfig sets a method and returns the mock.
func (*Logic) SetFuncSetupFileConfig ¶
func (mock *Logic) SetFuncSetupFileConfig(impl func(pkg test.Package, cfgDir string, file test.File) (test.File, error)) *Logic
SetFuncSetupFileConfig sets a method and returns the mock.
func (*Logic) SetFuncSetupPkgConfig ¶
func (mock *Logic) SetFuncSetupPkgConfig(impl func(cfg test.Config, cfgDir, name string, pkg test.Package, numCPUs int) (test.Package, error)) *Logic
SetFuncSetupPkgConfig sets a method and returns the mock.
func (*Logic) SetReturnCreateLink ¶
SetReturnCreateLink sets a fake method.
func (*Logic) SetReturnGetInstalledFiles ¶
SetReturnGetInstalledFiles sets a fake method.
func (*Logic) SetReturnInstall ¶
SetReturnInstall sets a fake method.
func (*Logic) SetReturnInstallFile ¶
SetReturnInstallFile sets a fake method.
func (*Logic) SetReturnInstallPackage ¶
SetReturnInstallPackage sets a fake method.
func (*Logic) SetReturnRecreateLink ¶
SetReturnRecreateLink sets a fake method.
func (*Logic) SetReturnRemoveFileAndCreateLink ¶
SetReturnRemoveFileAndCreateLink sets a fake method.
func (*Logic) SetReturnSetupConfig ¶
SetReturnSetupConfig sets a fake method.
func (*Logic) SetReturnSetupFileConfig ¶
SetReturnSetupFileConfig sets a fake method.
func (*Logic) SetReturnSetupPkgConfig ¶
SetReturnSetupPkgConfig sets a fake method.
func (Logic) SetupConfig ¶
SetupConfig is a mock method.
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
Printer is a mock.
func NewPrinter ¶
func NewPrinter(t *testing.T, cb gomic.CallbackNotImplemented) *Printer
NewPrinter returns Printer .
func (*Printer) SetFuncFprintf ¶
func (mock *Printer) SetFuncFprintf(impl func(w io.Writer, format string, a ...interface{}) (n int, err error)) *Printer
SetFuncFprintf sets a method and returns the mock.
func (*Printer) SetFuncFprintln ¶
func (mock *Printer) SetFuncFprintln(impl func(w io.Writer, a ...interface{}) (n int, err error)) *Printer
SetFuncFprintln sets a method and returns the mock.
func (*Printer) SetFuncPrintf ¶
func (mock *Printer) SetFuncPrintf(impl func(format string, a ...interface{}) (n int, err error)) *Printer
SetFuncPrintf sets a method and returns the mock.
func (*Printer) SetFuncPrintln ¶
SetFuncPrintln sets a method and returns the mock.
func (*Printer) SetReturnFprintf ¶
SetReturnFprintf sets a fake method.
func (*Printer) SetReturnFprintln ¶
SetReturnFprintln sets a fake method.
func (*Printer) SetReturnPrintf ¶
SetReturnPrintf sets a fake method.
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime is a mock.
func NewRuntime ¶
func NewRuntime(t *testing.T, cb gomic.CallbackNotImplemented) *Runtime
NewRuntime returns Runtime .
func (*Runtime) SetFuncArch ¶
SetFuncArch sets a method and returns the mock.
func (*Runtime) SetFuncNumCPU ¶
SetFuncNumCPU sets a method and returns the mock.
func (*Runtime) SetReturnArch ¶
SetReturnArch sets a fake method.
func (*Runtime) SetReturnNumCPU ¶
SetReturnNumCPU sets a fake method.
func (*Runtime) SetReturnOS ¶
SetReturnOS sets a fake method.
type WriteCloser ¶
type WriteCloser struct {
// contains filtered or unexported fields
}
WriteCloser is a mock.
func NewWriteCloser ¶
func NewWriteCloser(t *testing.T, cb gomic.CallbackNotImplemented) *WriteCloser
NewWriteCloser returns WriteCloser .
func (*WriteCloser) SetFuncClose ¶
func (mock *WriteCloser) SetFuncClose(impl func() error) *WriteCloser
SetFuncClose sets a method and returns the mock.
func (*WriteCloser) SetFuncWrite ¶
func (mock *WriteCloser) SetFuncWrite(impl func(p []byte) (n int, err error)) *WriteCloser
SetFuncWrite sets a method and returns the mock.
func (*WriteCloser) SetReturnClose ¶
func (mock *WriteCloser) SetReturnClose(r0 error) *WriteCloser
SetReturnClose sets a fake method.
func (*WriteCloser) SetReturnWrite ¶
func (mock *WriteCloser) SetReturnWrite(n int, err error) *WriteCloser
SetReturnWrite sets a fake method.