test

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

func (mock Archiver) Read(input io.Reader, destination string) error

Read is a mock method.

func (*Archiver) SetFuncRead

func (mock *Archiver) SetFuncRead(impl func(input io.Reader, destination string) error) *Archiver

SetFuncRead sets a method and returns the mock.

func (*Archiver) SetReturnRead

func (mock *Archiver) SetReturnRead(r0 error) *Archiver

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

func (mock FileInfo) IsDir() bool

IsDir is a mock method.

func (FileInfo) ModTime

func (mock FileInfo) ModTime() time.Time

ModTime is a mock method.

func (FileInfo) Mode

func (mock FileInfo) Mode() os.FileMode

Mode is a mock method.

func (FileInfo) Name

func (mock FileInfo) Name() string

Name is a mock method.

func (*FileInfo) SetFuncIsDir

func (mock *FileInfo) SetFuncIsDir(impl func() bool) *FileInfo

SetFuncIsDir sets a method and returns the mock.

func (*FileInfo) SetFuncModTime

func (mock *FileInfo) SetFuncModTime(impl func() time.Time) *FileInfo

SetFuncModTime sets a method and returns the mock.

func (*FileInfo) SetFuncMode

func (mock *FileInfo) SetFuncMode(impl func() os.FileMode) *FileInfo

SetFuncMode sets a method and returns the mock.

func (*FileInfo) SetFuncName

func (mock *FileInfo) SetFuncName(impl func() string) *FileInfo

SetFuncName sets a method and returns the mock.

func (*FileInfo) SetFuncSize

func (mock *FileInfo) SetFuncSize(impl func() int64) *FileInfo

SetFuncSize sets a method and returns the mock.

func (*FileInfo) SetFuncSys

func (mock *FileInfo) SetFuncSys(impl func() interface{}) *FileInfo

SetFuncSys sets a method and returns the mock.

func (*FileInfo) SetReturnIsDir

func (mock *FileInfo) SetReturnIsDir(r0 bool) *FileInfo

SetReturnIsDir sets a fake method.

func (*FileInfo) SetReturnModTime

func (mock *FileInfo) SetReturnModTime(r0 time.Time) *FileInfo

SetReturnModTime sets a fake method.

func (*FileInfo) SetReturnMode

func (mock *FileInfo) SetReturnMode(r0 os.FileMode) *FileInfo

SetReturnMode sets a fake method.

func (*FileInfo) SetReturnName

func (mock *FileInfo) SetReturnName(r0 string) *FileInfo

SetReturnName sets a fake method.

func (*FileInfo) SetReturnSize

func (mock *FileInfo) SetReturnSize(r0 int64) *FileInfo

SetReturnSize sets a fake method.

func (*FileInfo) SetReturnSys

func (mock *FileInfo) SetReturnSys(r0 interface{}) *FileInfo

SetReturnSys sets a fake method.

func (FileInfo) Size

func (mock FileInfo) Size() int64

Size is a mock method.

func (FileInfo) Sys

func (mock FileInfo) Sys() interface{}

Sys is a mock 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) Copy

func (mock FileSystem) Copy(dst io.Writer, src io.Reader) (int64, error)

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

func (mock FileSystem) Getwd() (string, error)

Getwd is a mock method.

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 (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 (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 (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 (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 (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 (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 (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 (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.

func (FileSystem) WriteFile

func (mock FileSystem) WriteFile(dest string, data []byte) error

WriteFile 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 (mock Logic) CreateLink(file test.File) (test.File, error)

CreateLink is a mock method.

func (Logic) GetInstalledFiles

func (mock Logic) GetInstalledFiles(files []test.File) []test.File

GetInstalledFiles is a mock method.

func (Logic) Install

func (mock Logic) Install(ctx context.Context, params test.InstallParams) (test.Result, error)

Install 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 (mock Logic) RecreateLink(file test.File) (test.File, error)

RecreateLink is a mock method.

func (mock Logic) RemoveFileAndCreateLink(file test.File) (test.File, error)

RemoveFileAndCreateLink is a mock method.

func (mock *Logic) SetFuncCreateLink(impl func(file test.File) (test.File, error)) *Logic

SetFuncCreateLink sets a method and returns the mock.

func (*Logic) SetFuncGetInstalledFiles

func (mock *Logic) SetFuncGetInstalledFiles(impl func(files []test.File) []test.File) *Logic

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 (mock *Logic) SetFuncRecreateLink(impl func(file test.File) (test.File, error)) *Logic

SetFuncRecreateLink sets a method and returns the mock.

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 (mock *Logic) SetReturnCreateLink(r0 test.File, r1 error) *Logic

SetReturnCreateLink sets a fake method.

func (*Logic) SetReturnGetInstalledFiles

func (mock *Logic) SetReturnGetInstalledFiles(r0 []test.File) *Logic

SetReturnGetInstalledFiles sets a fake method.

func (*Logic) SetReturnInstall

func (mock *Logic) SetReturnInstall(r0 test.Result, r1 error) *Logic

SetReturnInstall sets a fake method.

func (*Logic) SetReturnInstallFile

func (mock *Logic) SetReturnInstallFile(r0 error) *Logic

SetReturnInstallFile sets a fake method.

func (*Logic) SetReturnInstallPackage

func (mock *Logic) SetReturnInstallPackage(r0 test.Package, r1 error) *Logic

SetReturnInstallPackage sets a fake method.

func (mock *Logic) SetReturnRecreateLink(r0 test.File, r1 error) *Logic

SetReturnRecreateLink sets a fake method.

func (mock *Logic) SetReturnRemoveFileAndCreateLink(r0 test.File, r1 error) *Logic

SetReturnRemoveFileAndCreateLink sets a fake method.

func (*Logic) SetReturnSetupConfig

func (mock *Logic) SetReturnSetupConfig(r0 test.Config, r1 error) *Logic

SetReturnSetupConfig sets a fake method.

func (*Logic) SetReturnSetupFileConfig

func (mock *Logic) SetReturnSetupFileConfig(r0 test.File, r1 error) *Logic

SetReturnSetupFileConfig sets a fake method.

func (*Logic) SetReturnSetupPkgConfig

func (mock *Logic) SetReturnSetupPkgConfig(r0 test.Package, r1 error) *Logic

SetReturnSetupPkgConfig sets a fake method.

func (Logic) SetupConfig

func (mock Logic) SetupConfig(cfg test.Config, cfgPath string) (test.Config, error)

SetupConfig is a mock method.

func (Logic) SetupFileConfig

func (mock Logic) SetupFileConfig(pkg test.Package, cfgDir string, file test.File) (test.File, error)

SetupFileConfig is a mock method.

func (Logic) SetupPkgConfig

func (mock Logic) SetupPkgConfig(cfg test.Config, cfgDir, name string, pkg test.Package, numCPUs int) (test.Package, error)

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

func (mock Printer) Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error)

Fprintf is a mock method.

func (Printer) Fprintln

func (mock Printer) Fprintln(w io.Writer, a ...interface{}) (n int, err error)

Fprintln is a mock method.

func (Printer) Printf

func (mock Printer) Printf(format string, a ...interface{}) (n int, err error)

Printf is a mock method.

func (Printer) Println

func (mock Printer) Println(a ...interface{}) (n int, err error)

Println is a mock method.

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

func (mock *Printer) SetFuncPrintln(impl func(a ...interface{}) (n int, err error)) *Printer

SetFuncPrintln sets a method and returns the mock.

func (*Printer) SetReturnFprintf

func (mock *Printer) SetReturnFprintf(n int, err error) *Printer

SetReturnFprintf sets a fake method.

func (*Printer) SetReturnFprintln

func (mock *Printer) SetReturnFprintln(n int, err error) *Printer

SetReturnFprintln sets a fake method.

func (*Printer) SetReturnPrintf

func (mock *Printer) SetReturnPrintf(n int, err error) *Printer

SetReturnPrintf sets a fake method.

func (*Printer) SetReturnPrintln

func (mock *Printer) SetReturnPrintln(n int, err error) *Printer

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

func (mock Runtime) Arch() string

Arch is a mock method.

func (Runtime) NumCPU

func (mock Runtime) NumCPU() int

NumCPU is a mock method.

func (Runtime) OS

func (mock Runtime) OS() string

OS is a mock method.

func (*Runtime) SetFuncArch

func (mock *Runtime) SetFuncArch(impl func() string) *Runtime

SetFuncArch sets a method and returns the mock.

func (*Runtime) SetFuncNumCPU

func (mock *Runtime) SetFuncNumCPU(impl func() int) *Runtime

SetFuncNumCPU sets a method and returns the mock.

func (*Runtime) SetFuncOS

func (mock *Runtime) SetFuncOS(impl func() string) *Runtime

SetFuncOS sets a method and returns the mock.

func (*Runtime) SetReturnArch

func (mock *Runtime) SetReturnArch(r0 string) *Runtime

SetReturnArch sets a fake method.

func (*Runtime) SetReturnNumCPU

func (mock *Runtime) SetReturnNumCPU(r0 int) *Runtime

SetReturnNumCPU sets a fake method.

func (*Runtime) SetReturnOS

func (mock *Runtime) SetReturnOS(r0 string) *Runtime

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

func (mock WriteCloser) Close() error

Close is a mock method.

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.

func (WriteCloser) Write

func (mock WriteCloser) Write(p []byte) (n int, err error)

Write is a mock method.

Jump to

Keyboard shortcuts

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