os_fake

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeDirEntry added in v0.43.0

type FakeDirEntry struct {
	InfoStub func() (fs.FileInfo, error)

	IsDirStub func() bool

	NameStub func() string

	TypeStub func() fs.FileMode
	// contains filtered or unexported fields
}

func (*FakeDirEntry) Info added in v0.43.0

func (fake *FakeDirEntry) Info() (fs.FileInfo, error)

func (*FakeDirEntry) InfoCallCount added in v0.43.0

func (fake *FakeDirEntry) InfoCallCount() int

func (*FakeDirEntry) InfoCalls added in v0.43.0

func (fake *FakeDirEntry) InfoCalls(stub func() (fs.FileInfo, error))

func (*FakeDirEntry) InfoReturns added in v0.43.0

func (fake *FakeDirEntry) InfoReturns(result1 fs.FileInfo, result2 error)

func (*FakeDirEntry) InfoReturnsOnCall added in v0.43.0

func (fake *FakeDirEntry) InfoReturnsOnCall(i int, result1 fs.FileInfo, result2 error)

func (*FakeDirEntry) Invocations added in v0.43.0

func (fake *FakeDirEntry) Invocations() map[string][][]interface{}

func (*FakeDirEntry) IsDir added in v0.43.0

func (fake *FakeDirEntry) IsDir() bool

func (*FakeDirEntry) IsDirCallCount added in v0.43.0

func (fake *FakeDirEntry) IsDirCallCount() int

func (*FakeDirEntry) IsDirCalls added in v0.43.0

func (fake *FakeDirEntry) IsDirCalls(stub func() bool)

func (*FakeDirEntry) IsDirReturns added in v0.43.0

func (fake *FakeDirEntry) IsDirReturns(result1 bool)

func (*FakeDirEntry) IsDirReturnsOnCall added in v0.43.0

func (fake *FakeDirEntry) IsDirReturnsOnCall(i int, result1 bool)

func (*FakeDirEntry) Name added in v0.43.0

func (fake *FakeDirEntry) Name() string

func (*FakeDirEntry) NameCallCount added in v0.43.0

func (fake *FakeDirEntry) NameCallCount() int

func (*FakeDirEntry) NameCalls added in v0.43.0

func (fake *FakeDirEntry) NameCalls(stub func() string)

func (*FakeDirEntry) NameReturns added in v0.43.0

func (fake *FakeDirEntry) NameReturns(result1 string)

func (*FakeDirEntry) NameReturnsOnCall added in v0.43.0

func (fake *FakeDirEntry) NameReturnsOnCall(i int, result1 string)

func (*FakeDirEntry) Type added in v0.43.0

func (fake *FakeDirEntry) Type() fs.FileMode

func (*FakeDirEntry) TypeCallCount added in v0.43.0

func (fake *FakeDirEntry) TypeCallCount() int

func (*FakeDirEntry) TypeCalls added in v0.43.0

func (fake *FakeDirEntry) TypeCalls(stub func() fs.FileMode)

func (*FakeDirEntry) TypeReturns added in v0.43.0

func (fake *FakeDirEntry) TypeReturns(result1 fs.FileMode)

func (*FakeDirEntry) TypeReturnsOnCall added in v0.43.0

func (fake *FakeDirEntry) TypeReturnsOnCall(i int, result1 fs.FileMode)

type FakeFile

type FakeFile struct {
	ChdirStub func() error

	CloseStub func() error

	FdStub func() uintptr

	NameStub func() string

	ReadStub func([]byte) (int, error)

	ReadAtStub func([]byte, int64) (int, error)

	SeekStub func(int64, int) (int64, error)

	StatStub func() (fs.FileInfo, error)

	WriteStub func([]byte) (int, error)

	WriteAtStub func([]byte, int64) (int, error)

	WriteStringStub func(string) (int, error)
	// contains filtered or unexported fields
}

func (*FakeFile) Chdir

func (fake *FakeFile) Chdir() error

func (*FakeFile) ChdirCallCount

func (fake *FakeFile) ChdirCallCount() int

func (*FakeFile) ChdirCalls

func (fake *FakeFile) ChdirCalls(stub func() error)

func (*FakeFile) ChdirReturns

func (fake *FakeFile) ChdirReturns(result1 error)

func (*FakeFile) ChdirReturnsOnCall

func (fake *FakeFile) ChdirReturnsOnCall(i int, result1 error)

func (*FakeFile) Close

func (fake *FakeFile) Close() error

func (*FakeFile) CloseCallCount

func (fake *FakeFile) CloseCallCount() int

func (*FakeFile) CloseCalls

func (fake *FakeFile) CloseCalls(stub func() error)

func (*FakeFile) CloseReturns

func (fake *FakeFile) CloseReturns(result1 error)

func (*FakeFile) CloseReturnsOnCall

func (fake *FakeFile) CloseReturnsOnCall(i int, result1 error)

func (*FakeFile) Fd

func (fake *FakeFile) Fd() uintptr

func (*FakeFile) FdCallCount

func (fake *FakeFile) FdCallCount() int

func (*FakeFile) FdCalls

func (fake *FakeFile) FdCalls(stub func() uintptr)

func (*FakeFile) FdReturns

func (fake *FakeFile) FdReturns(result1 uintptr)

func (*FakeFile) FdReturnsOnCall

func (fake *FakeFile) FdReturnsOnCall(i int, result1 uintptr)

func (*FakeFile) Invocations

func (fake *FakeFile) Invocations() map[string][][]interface{}

func (*FakeFile) Name

func (fake *FakeFile) Name() string

func (*FakeFile) NameCallCount

func (fake *FakeFile) NameCallCount() int

func (*FakeFile) NameCalls

func (fake *FakeFile) NameCalls(stub func() string)

func (*FakeFile) NameReturns

func (fake *FakeFile) NameReturns(result1 string)

func (*FakeFile) NameReturnsOnCall

func (fake *FakeFile) NameReturnsOnCall(i int, result1 string)

func (*FakeFile) Read

func (fake *FakeFile) Read(arg1 []byte) (int, error)

func (*FakeFile) ReadArgsForCall

func (fake *FakeFile) ReadArgsForCall(i int) []byte

func (*FakeFile) ReadAt

func (fake *FakeFile) ReadAt(arg1 []byte, arg2 int64) (int, error)

func (*FakeFile) ReadAtArgsForCall

func (fake *FakeFile) ReadAtArgsForCall(i int) ([]byte, int64)

func (*FakeFile) ReadAtCallCount

func (fake *FakeFile) ReadAtCallCount() int

func (*FakeFile) ReadAtCalls

func (fake *FakeFile) ReadAtCalls(stub func([]byte, int64) (int, error))

func (*FakeFile) ReadAtReturns

func (fake *FakeFile) ReadAtReturns(result1 int, result2 error)

func (*FakeFile) ReadAtReturnsOnCall

func (fake *FakeFile) ReadAtReturnsOnCall(i int, result1 int, result2 error)

func (*FakeFile) ReadCallCount

func (fake *FakeFile) ReadCallCount() int

func (*FakeFile) ReadCalls

func (fake *FakeFile) ReadCalls(stub func([]byte) (int, error))

func (*FakeFile) ReadReturns

func (fake *FakeFile) ReadReturns(result1 int, result2 error)

func (*FakeFile) ReadReturnsOnCall

func (fake *FakeFile) ReadReturnsOnCall(i int, result1 int, result2 error)

func (*FakeFile) Seek

func (fake *FakeFile) Seek(arg1 int64, arg2 int) (int64, error)

func (*FakeFile) SeekArgsForCall

func (fake *FakeFile) SeekArgsForCall(i int) (int64, int)

func (*FakeFile) SeekCallCount

func (fake *FakeFile) SeekCallCount() int

func (*FakeFile) SeekCalls

func (fake *FakeFile) SeekCalls(stub func(int64, int) (int64, error))

func (*FakeFile) SeekReturns

func (fake *FakeFile) SeekReturns(result1 int64, result2 error)

func (*FakeFile) SeekReturnsOnCall

func (fake *FakeFile) SeekReturnsOnCall(i int, result1 int64, result2 error)

func (*FakeFile) Stat

func (fake *FakeFile) Stat() (fs.FileInfo, error)

func (*FakeFile) StatCallCount

func (fake *FakeFile) StatCallCount() int

func (*FakeFile) StatCalls

func (fake *FakeFile) StatCalls(stub func() (fs.FileInfo, error))

func (*FakeFile) StatReturns

func (fake *FakeFile) StatReturns(result1 fs.FileInfo, result2 error)

func (*FakeFile) StatReturnsOnCall

func (fake *FakeFile) StatReturnsOnCall(i int, result1 fs.FileInfo, result2 error)

func (*FakeFile) Write

func (fake *FakeFile) Write(arg1 []byte) (int, error)

func (*FakeFile) WriteArgsForCall

func (fake *FakeFile) WriteArgsForCall(i int) []byte

func (*FakeFile) WriteAt

func (fake *FakeFile) WriteAt(arg1 []byte, arg2 int64) (int, error)

func (*FakeFile) WriteAtArgsForCall

func (fake *FakeFile) WriteAtArgsForCall(i int) ([]byte, int64)

func (*FakeFile) WriteAtCallCount

func (fake *FakeFile) WriteAtCallCount() int

func (*FakeFile) WriteAtCalls

func (fake *FakeFile) WriteAtCalls(stub func([]byte, int64) (int, error))

func (*FakeFile) WriteAtReturns

func (fake *FakeFile) WriteAtReturns(result1 int, result2 error)

func (*FakeFile) WriteAtReturnsOnCall

func (fake *FakeFile) WriteAtReturnsOnCall(i int, result1 int, result2 error)

func (*FakeFile) WriteCallCount

func (fake *FakeFile) WriteCallCount() int

func (*FakeFile) WriteCalls

func (fake *FakeFile) WriteCalls(stub func([]byte) (int, error))

func (*FakeFile) WriteReturns

func (fake *FakeFile) WriteReturns(result1 int, result2 error)

func (*FakeFile) WriteReturnsOnCall

func (fake *FakeFile) WriteReturnsOnCall(i int, result1 int, result2 error)

func (*FakeFile) WriteString

func (fake *FakeFile) WriteString(arg1 string) (int, error)

func (*FakeFile) WriteStringArgsForCall

func (fake *FakeFile) WriteStringArgsForCall(i int) string

func (*FakeFile) WriteStringCallCount

func (fake *FakeFile) WriteStringCallCount() int

func (*FakeFile) WriteStringCalls

func (fake *FakeFile) WriteStringCalls(stub func(string) (int, error))

func (*FakeFile) WriteStringReturns

func (fake *FakeFile) WriteStringReturns(result1 int, result2 error)

func (*FakeFile) WriteStringReturnsOnCall

func (fake *FakeFile) WriteStringReturnsOnCall(i int, result1 int, result2 error)

type FakeOs

type FakeOs struct {
	ChdirStub func(string) error

	ChmodStub func(string, fs.FileMode) error

	ChownStub func(string, int, int) error

	ChtimesStub func(string, time.Time, time.Time) error

	ClearenvStub func()

	CreateStub func(string) (osshim.File, error)

	EnvironStub func() []string

	ExitStub func(int)

	ExpandStub func(string, func(string) string) string

	ExpandEnvStub func(string) string

	FindProcessStub func(int) (*os.Process, error)

	GetegidStub func() int

	GetenvStub func(string) string

	GeteuidStub func() int

	GetgidStub func() int

	GetgroupsStub func() ([]int, error)

	GetpagesizeStub func() int

	GetpidStub func() int

	GetppidStub func() int

	GetuidStub func() int

	GetwdStub func() (string, error)

	HostnameStub func() (string, error)

	IsExistStub func(error) bool

	IsNotExistStub func(error) bool

	IsPathSeparatorStub func(uint8) bool

	IsPermissionStub func(error) bool

	LchownStub func(string, int, int) error

	LinkStub func(string, string) error

	LookupEnvStub func(string) (string, bool)

	LstatStub func(string) (fs.FileInfo, error)

	MkdirStub func(string, fs.FileMode) error

	MkdirAllStub func(string, fs.FileMode) error

	NewFileStub func(uintptr, string) osshim.File

	NewSyscallErrorStub func(string, error) error

	OpenStub func(string) (osshim.File, error)

	OpenFileStub func(string, int, fs.FileMode) (osshim.File, error)

	PipeStub func() (osshim.File, osshim.File, error)

	ReadDirStub func(string) ([]fs.DirEntry, error)

	ReadFileStub func(string) ([]byte, error)

	ReadlinkStub func(string) (string, error)

	RemoveStub func(string) error

	RemoveAllStub func(string) error

	RenameStub func(string, string) error

	SameFileStub func(fs.FileInfo, fs.FileInfo) bool

	SetenvStub func(string, string) error

	StartProcessStub func(string, []string, *os.ProcAttr) (*os.Process, error)

	StatStub func(string) (fs.FileInfo, error)

	SymlinkStub func(string, string) error

	TempDirStub func() string

	TruncateStub func(string, int64) error

	UnsetenvStub func(string) error

	WriteFileStub func(string, []byte, fs.FileMode) error
	// contains filtered or unexported fields
}

func (*FakeOs) Chdir

func (fake *FakeOs) Chdir(arg1 string) error

func (*FakeOs) ChdirArgsForCall

func (fake *FakeOs) ChdirArgsForCall(i int) string

func (*FakeOs) ChdirCallCount

func (fake *FakeOs) ChdirCallCount() int

func (*FakeOs) ChdirCalls

func (fake *FakeOs) ChdirCalls(stub func(string) error)

func (*FakeOs) ChdirReturns

func (fake *FakeOs) ChdirReturns(result1 error)

func (*FakeOs) ChdirReturnsOnCall

func (fake *FakeOs) ChdirReturnsOnCall(i int, result1 error)

func (*FakeOs) Chmod

func (fake *FakeOs) Chmod(arg1 string, arg2 fs.FileMode) error

func (*FakeOs) ChmodArgsForCall

func (fake *FakeOs) ChmodArgsForCall(i int) (string, fs.FileMode)

func (*FakeOs) ChmodCallCount

func (fake *FakeOs) ChmodCallCount() int

func (*FakeOs) ChmodCalls

func (fake *FakeOs) ChmodCalls(stub func(string, fs.FileMode) error)

func (*FakeOs) ChmodReturns

func (fake *FakeOs) ChmodReturns(result1 error)

func (*FakeOs) ChmodReturnsOnCall

func (fake *FakeOs) ChmodReturnsOnCall(i int, result1 error)

func (*FakeOs) Chown

func (fake *FakeOs) Chown(arg1 string, arg2 int, arg3 int) error

func (*FakeOs) ChownArgsForCall

func (fake *FakeOs) ChownArgsForCall(i int) (string, int, int)

func (*FakeOs) ChownCallCount

func (fake *FakeOs) ChownCallCount() int

func (*FakeOs) ChownCalls

func (fake *FakeOs) ChownCalls(stub func(string, int, int) error)

func (*FakeOs) ChownReturns

func (fake *FakeOs) ChownReturns(result1 error)

func (*FakeOs) ChownReturnsOnCall

func (fake *FakeOs) ChownReturnsOnCall(i int, result1 error)

func (*FakeOs) Chtimes

func (fake *FakeOs) Chtimes(arg1 string, arg2 time.Time, arg3 time.Time) error

func (*FakeOs) ChtimesArgsForCall

func (fake *FakeOs) ChtimesArgsForCall(i int) (string, time.Time, time.Time)

func (*FakeOs) ChtimesCallCount

func (fake *FakeOs) ChtimesCallCount() int

func (*FakeOs) ChtimesCalls

func (fake *FakeOs) ChtimesCalls(stub func(string, time.Time, time.Time) error)

func (*FakeOs) ChtimesReturns

func (fake *FakeOs) ChtimesReturns(result1 error)

func (*FakeOs) ChtimesReturnsOnCall

func (fake *FakeOs) ChtimesReturnsOnCall(i int, result1 error)

func (*FakeOs) Clearenv

func (fake *FakeOs) Clearenv()

func (*FakeOs) ClearenvCallCount

func (fake *FakeOs) ClearenvCallCount() int

func (*FakeOs) ClearenvCalls

func (fake *FakeOs) ClearenvCalls(stub func())

func (*FakeOs) Create

func (fake *FakeOs) Create(arg1 string) (osshim.File, error)

func (*FakeOs) CreateArgsForCall

func (fake *FakeOs) CreateArgsForCall(i int) string

func (*FakeOs) CreateCallCount

func (fake *FakeOs) CreateCallCount() int

func (*FakeOs) CreateCalls

func (fake *FakeOs) CreateCalls(stub func(string) (osshim.File, error))

func (*FakeOs) CreateReturns

func (fake *FakeOs) CreateReturns(result1 osshim.File, result2 error)

func (*FakeOs) CreateReturnsOnCall

func (fake *FakeOs) CreateReturnsOnCall(i int, result1 osshim.File, result2 error)

func (*FakeOs) Environ

func (fake *FakeOs) Environ() []string

func (*FakeOs) EnvironCallCount

func (fake *FakeOs) EnvironCallCount() int

func (*FakeOs) EnvironCalls

func (fake *FakeOs) EnvironCalls(stub func() []string)

func (*FakeOs) EnvironReturns

func (fake *FakeOs) EnvironReturns(result1 []string)

func (*FakeOs) EnvironReturnsOnCall

func (fake *FakeOs) EnvironReturnsOnCall(i int, result1 []string)

func (*FakeOs) Exit

func (fake *FakeOs) Exit(arg1 int)

func (*FakeOs) ExitArgsForCall

func (fake *FakeOs) ExitArgsForCall(i int) int

func (*FakeOs) ExitCallCount

func (fake *FakeOs) ExitCallCount() int

func (*FakeOs) ExitCalls

func (fake *FakeOs) ExitCalls(stub func(int))

func (*FakeOs) Expand

func (fake *FakeOs) Expand(arg1 string, arg2 func(string) string) string

func (*FakeOs) ExpandArgsForCall

func (fake *FakeOs) ExpandArgsForCall(i int) (string, func(string) string)

func (*FakeOs) ExpandCallCount

func (fake *FakeOs) ExpandCallCount() int

func (*FakeOs) ExpandCalls

func (fake *FakeOs) ExpandCalls(stub func(string, func(string) string) string)

func (*FakeOs) ExpandEnv

func (fake *FakeOs) ExpandEnv(arg1 string) string

func (*FakeOs) ExpandEnvArgsForCall

func (fake *FakeOs) ExpandEnvArgsForCall(i int) string

func (*FakeOs) ExpandEnvCallCount

func (fake *FakeOs) ExpandEnvCallCount() int

func (*FakeOs) ExpandEnvCalls

func (fake *FakeOs) ExpandEnvCalls(stub func(string) string)

func (*FakeOs) ExpandEnvReturns

func (fake *FakeOs) ExpandEnvReturns(result1 string)

func (*FakeOs) ExpandEnvReturnsOnCall

func (fake *FakeOs) ExpandEnvReturnsOnCall(i int, result1 string)

func (*FakeOs) ExpandReturns

func (fake *FakeOs) ExpandReturns(result1 string)

func (*FakeOs) ExpandReturnsOnCall

func (fake *FakeOs) ExpandReturnsOnCall(i int, result1 string)

func (*FakeOs) FindProcess

func (fake *FakeOs) FindProcess(arg1 int) (*os.Process, error)

func (*FakeOs) FindProcessArgsForCall

func (fake *FakeOs) FindProcessArgsForCall(i int) int

func (*FakeOs) FindProcessCallCount

func (fake *FakeOs) FindProcessCallCount() int

func (*FakeOs) FindProcessCalls

func (fake *FakeOs) FindProcessCalls(stub func(int) (*os.Process, error))

func (*FakeOs) FindProcessReturns

func (fake *FakeOs) FindProcessReturns(result1 *os.Process, result2 error)

func (*FakeOs) FindProcessReturnsOnCall

func (fake *FakeOs) FindProcessReturnsOnCall(i int, result1 *os.Process, result2 error)

func (*FakeOs) Getegid

func (fake *FakeOs) Getegid() int

func (*FakeOs) GetegidCallCount

func (fake *FakeOs) GetegidCallCount() int

func (*FakeOs) GetegidCalls

func (fake *FakeOs) GetegidCalls(stub func() int)

func (*FakeOs) GetegidReturns

func (fake *FakeOs) GetegidReturns(result1 int)

func (*FakeOs) GetegidReturnsOnCall

func (fake *FakeOs) GetegidReturnsOnCall(i int, result1 int)

func (*FakeOs) Getenv

func (fake *FakeOs) Getenv(arg1 string) string

func (*FakeOs) GetenvArgsForCall

func (fake *FakeOs) GetenvArgsForCall(i int) string

func (*FakeOs) GetenvCallCount

func (fake *FakeOs) GetenvCallCount() int

func (*FakeOs) GetenvCalls

func (fake *FakeOs) GetenvCalls(stub func(string) string)

func (*FakeOs) GetenvReturns

func (fake *FakeOs) GetenvReturns(result1 string)

func (*FakeOs) GetenvReturnsOnCall

func (fake *FakeOs) GetenvReturnsOnCall(i int, result1 string)

func (*FakeOs) Geteuid

func (fake *FakeOs) Geteuid() int

func (*FakeOs) GeteuidCallCount

func (fake *FakeOs) GeteuidCallCount() int

func (*FakeOs) GeteuidCalls

func (fake *FakeOs) GeteuidCalls(stub func() int)

func (*FakeOs) GeteuidReturns

func (fake *FakeOs) GeteuidReturns(result1 int)

func (*FakeOs) GeteuidReturnsOnCall

func (fake *FakeOs) GeteuidReturnsOnCall(i int, result1 int)

func (*FakeOs) Getgid

func (fake *FakeOs) Getgid() int

func (*FakeOs) GetgidCallCount

func (fake *FakeOs) GetgidCallCount() int

func (*FakeOs) GetgidCalls

func (fake *FakeOs) GetgidCalls(stub func() int)

func (*FakeOs) GetgidReturns

func (fake *FakeOs) GetgidReturns(result1 int)

func (*FakeOs) GetgidReturnsOnCall

func (fake *FakeOs) GetgidReturnsOnCall(i int, result1 int)

func (*FakeOs) Getgroups

func (fake *FakeOs) Getgroups() ([]int, error)

func (*FakeOs) GetgroupsCallCount

func (fake *FakeOs) GetgroupsCallCount() int

func (*FakeOs) GetgroupsCalls

func (fake *FakeOs) GetgroupsCalls(stub func() ([]int, error))

func (*FakeOs) GetgroupsReturns

func (fake *FakeOs) GetgroupsReturns(result1 []int, result2 error)

func (*FakeOs) GetgroupsReturnsOnCall

func (fake *FakeOs) GetgroupsReturnsOnCall(i int, result1 []int, result2 error)

func (*FakeOs) Getpagesize

func (fake *FakeOs) Getpagesize() int

func (*FakeOs) GetpagesizeCallCount

func (fake *FakeOs) GetpagesizeCallCount() int

func (*FakeOs) GetpagesizeCalls

func (fake *FakeOs) GetpagesizeCalls(stub func() int)

func (*FakeOs) GetpagesizeReturns

func (fake *FakeOs) GetpagesizeReturns(result1 int)

func (*FakeOs) GetpagesizeReturnsOnCall

func (fake *FakeOs) GetpagesizeReturnsOnCall(i int, result1 int)

func (*FakeOs) Getpid

func (fake *FakeOs) Getpid() int

func (*FakeOs) GetpidCallCount

func (fake *FakeOs) GetpidCallCount() int

func (*FakeOs) GetpidCalls

func (fake *FakeOs) GetpidCalls(stub func() int)

func (*FakeOs) GetpidReturns

func (fake *FakeOs) GetpidReturns(result1 int)

func (*FakeOs) GetpidReturnsOnCall

func (fake *FakeOs) GetpidReturnsOnCall(i int, result1 int)

func (*FakeOs) Getppid

func (fake *FakeOs) Getppid() int

func (*FakeOs) GetppidCallCount

func (fake *FakeOs) GetppidCallCount() int

func (*FakeOs) GetppidCalls

func (fake *FakeOs) GetppidCalls(stub func() int)

func (*FakeOs) GetppidReturns

func (fake *FakeOs) GetppidReturns(result1 int)

func (*FakeOs) GetppidReturnsOnCall

func (fake *FakeOs) GetppidReturnsOnCall(i int, result1 int)

func (*FakeOs) Getuid

func (fake *FakeOs) Getuid() int

func (*FakeOs) GetuidCallCount

func (fake *FakeOs) GetuidCallCount() int

func (*FakeOs) GetuidCalls

func (fake *FakeOs) GetuidCalls(stub func() int)

func (*FakeOs) GetuidReturns

func (fake *FakeOs) GetuidReturns(result1 int)

func (*FakeOs) GetuidReturnsOnCall

func (fake *FakeOs) GetuidReturnsOnCall(i int, result1 int)

func (*FakeOs) Getwd

func (fake *FakeOs) Getwd() (string, error)

func (*FakeOs) GetwdCallCount

func (fake *FakeOs) GetwdCallCount() int

func (*FakeOs) GetwdCalls

func (fake *FakeOs) GetwdCalls(stub func() (string, error))

func (*FakeOs) GetwdReturns

func (fake *FakeOs) GetwdReturns(result1 string, result2 error)

func (*FakeOs) GetwdReturnsOnCall

func (fake *FakeOs) GetwdReturnsOnCall(i int, result1 string, result2 error)

func (*FakeOs) Hostname

func (fake *FakeOs) Hostname() (string, error)

func (*FakeOs) HostnameCallCount

func (fake *FakeOs) HostnameCallCount() int

func (*FakeOs) HostnameCalls

func (fake *FakeOs) HostnameCalls(stub func() (string, error))

func (*FakeOs) HostnameReturns

func (fake *FakeOs) HostnameReturns(result1 string, result2 error)

func (*FakeOs) HostnameReturnsOnCall

func (fake *FakeOs) HostnameReturnsOnCall(i int, result1 string, result2 error)

func (*FakeOs) Invocations

func (fake *FakeOs) Invocations() map[string][][]interface{}

func (*FakeOs) IsExist

func (fake *FakeOs) IsExist(arg1 error) bool

func (*FakeOs) IsExistArgsForCall

func (fake *FakeOs) IsExistArgsForCall(i int) error

func (*FakeOs) IsExistCallCount

func (fake *FakeOs) IsExistCallCount() int

func (*FakeOs) IsExistCalls

func (fake *FakeOs) IsExistCalls(stub func(error) bool)

func (*FakeOs) IsExistReturns

func (fake *FakeOs) IsExistReturns(result1 bool)

func (*FakeOs) IsExistReturnsOnCall

func (fake *FakeOs) IsExistReturnsOnCall(i int, result1 bool)

func (*FakeOs) IsNotExist

func (fake *FakeOs) IsNotExist(arg1 error) bool

func (*FakeOs) IsNotExistArgsForCall

func (fake *FakeOs) IsNotExistArgsForCall(i int) error

func (*FakeOs) IsNotExistCallCount

func (fake *FakeOs) IsNotExistCallCount() int

func (*FakeOs) IsNotExistCalls

func (fake *FakeOs) IsNotExistCalls(stub func(error) bool)

func (*FakeOs) IsNotExistReturns

func (fake *FakeOs) IsNotExistReturns(result1 bool)

func (*FakeOs) IsNotExistReturnsOnCall

func (fake *FakeOs) IsNotExistReturnsOnCall(i int, result1 bool)

func (*FakeOs) IsPathSeparator

func (fake *FakeOs) IsPathSeparator(arg1 uint8) bool

func (*FakeOs) IsPathSeparatorArgsForCall

func (fake *FakeOs) IsPathSeparatorArgsForCall(i int) uint8

func (*FakeOs) IsPathSeparatorCallCount

func (fake *FakeOs) IsPathSeparatorCallCount() int

func (*FakeOs) IsPathSeparatorCalls

func (fake *FakeOs) IsPathSeparatorCalls(stub func(uint8) bool)

func (*FakeOs) IsPathSeparatorReturns

func (fake *FakeOs) IsPathSeparatorReturns(result1 bool)

func (*FakeOs) IsPathSeparatorReturnsOnCall

func (fake *FakeOs) IsPathSeparatorReturnsOnCall(i int, result1 bool)

func (*FakeOs) IsPermission

func (fake *FakeOs) IsPermission(arg1 error) bool

func (*FakeOs) IsPermissionArgsForCall

func (fake *FakeOs) IsPermissionArgsForCall(i int) error

func (*FakeOs) IsPermissionCallCount

func (fake *FakeOs) IsPermissionCallCount() int

func (*FakeOs) IsPermissionCalls

func (fake *FakeOs) IsPermissionCalls(stub func(error) bool)

func (*FakeOs) IsPermissionReturns

func (fake *FakeOs) IsPermissionReturns(result1 bool)

func (*FakeOs) IsPermissionReturnsOnCall

func (fake *FakeOs) IsPermissionReturnsOnCall(i int, result1 bool)

func (*FakeOs) Lchown

func (fake *FakeOs) Lchown(arg1 string, arg2 int, arg3 int) error

func (*FakeOs) LchownArgsForCall

func (fake *FakeOs) LchownArgsForCall(i int) (string, int, int)

func (*FakeOs) LchownCallCount

func (fake *FakeOs) LchownCallCount() int

func (*FakeOs) LchownCalls

func (fake *FakeOs) LchownCalls(stub func(string, int, int) error)

func (*FakeOs) LchownReturns

func (fake *FakeOs) LchownReturns(result1 error)

func (*FakeOs) LchownReturnsOnCall

func (fake *FakeOs) LchownReturnsOnCall(i int, result1 error)
func (fake *FakeOs) Link(arg1 string, arg2 string) error

func (*FakeOs) LinkArgsForCall

func (fake *FakeOs) LinkArgsForCall(i int) (string, string)

func (*FakeOs) LinkCallCount

func (fake *FakeOs) LinkCallCount() int

func (*FakeOs) LinkCalls

func (fake *FakeOs) LinkCalls(stub func(string, string) error)

func (*FakeOs) LinkReturns

func (fake *FakeOs) LinkReturns(result1 error)

func (*FakeOs) LinkReturnsOnCall

func (fake *FakeOs) LinkReturnsOnCall(i int, result1 error)

func (*FakeOs) LookupEnv

func (fake *FakeOs) LookupEnv(arg1 string) (string, bool)

func (*FakeOs) LookupEnvArgsForCall

func (fake *FakeOs) LookupEnvArgsForCall(i int) string

func (*FakeOs) LookupEnvCallCount

func (fake *FakeOs) LookupEnvCallCount() int

func (*FakeOs) LookupEnvCalls

func (fake *FakeOs) LookupEnvCalls(stub func(string) (string, bool))

func (*FakeOs) LookupEnvReturns

func (fake *FakeOs) LookupEnvReturns(result1 string, result2 bool)

func (*FakeOs) LookupEnvReturnsOnCall

func (fake *FakeOs) LookupEnvReturnsOnCall(i int, result1 string, result2 bool)

func (*FakeOs) Lstat

func (fake *FakeOs) Lstat(arg1 string) (fs.FileInfo, error)

func (*FakeOs) LstatArgsForCall

func (fake *FakeOs) LstatArgsForCall(i int) string

func (*FakeOs) LstatCallCount

func (fake *FakeOs) LstatCallCount() int

func (*FakeOs) LstatCalls

func (fake *FakeOs) LstatCalls(stub func(string) (fs.FileInfo, error))

func (*FakeOs) LstatReturns

func (fake *FakeOs) LstatReturns(result1 fs.FileInfo, result2 error)

func (*FakeOs) LstatReturnsOnCall

func (fake *FakeOs) LstatReturnsOnCall(i int, result1 fs.FileInfo, result2 error)

func (*FakeOs) Mkdir

func (fake *FakeOs) Mkdir(arg1 string, arg2 fs.FileMode) error

func (*FakeOs) MkdirAll

func (fake *FakeOs) MkdirAll(arg1 string, arg2 fs.FileMode) error

func (*FakeOs) MkdirAllArgsForCall

func (fake *FakeOs) MkdirAllArgsForCall(i int) (string, fs.FileMode)

func (*FakeOs) MkdirAllCallCount

func (fake *FakeOs) MkdirAllCallCount() int

func (*FakeOs) MkdirAllCalls

func (fake *FakeOs) MkdirAllCalls(stub func(string, fs.FileMode) error)

func (*FakeOs) MkdirAllReturns

func (fake *FakeOs) MkdirAllReturns(result1 error)

func (*FakeOs) MkdirAllReturnsOnCall

func (fake *FakeOs) MkdirAllReturnsOnCall(i int, result1 error)

func (*FakeOs) MkdirArgsForCall

func (fake *FakeOs) MkdirArgsForCall(i int) (string, fs.FileMode)

func (*FakeOs) MkdirCallCount

func (fake *FakeOs) MkdirCallCount() int

func (*FakeOs) MkdirCalls

func (fake *FakeOs) MkdirCalls(stub func(string, fs.FileMode) error)

func (*FakeOs) MkdirReturns

func (fake *FakeOs) MkdirReturns(result1 error)

func (*FakeOs) MkdirReturnsOnCall

func (fake *FakeOs) MkdirReturnsOnCall(i int, result1 error)

func (*FakeOs) NewFile

func (fake *FakeOs) NewFile(arg1 uintptr, arg2 string) osshim.File

func (*FakeOs) NewFileArgsForCall

func (fake *FakeOs) NewFileArgsForCall(i int) (uintptr, string)

func (*FakeOs) NewFileCallCount

func (fake *FakeOs) NewFileCallCount() int

func (*FakeOs) NewFileCalls

func (fake *FakeOs) NewFileCalls(stub func(uintptr, string) osshim.File)

func (*FakeOs) NewFileReturns

func (fake *FakeOs) NewFileReturns(result1 osshim.File)

func (*FakeOs) NewFileReturnsOnCall

func (fake *FakeOs) NewFileReturnsOnCall(i int, result1 osshim.File)

func (*FakeOs) NewSyscallError

func (fake *FakeOs) NewSyscallError(arg1 string, arg2 error) error

func (*FakeOs) NewSyscallErrorArgsForCall

func (fake *FakeOs) NewSyscallErrorArgsForCall(i int) (string, error)

func (*FakeOs) NewSyscallErrorCallCount

func (fake *FakeOs) NewSyscallErrorCallCount() int

func (*FakeOs) NewSyscallErrorCalls

func (fake *FakeOs) NewSyscallErrorCalls(stub func(string, error) error)

func (*FakeOs) NewSyscallErrorReturns

func (fake *FakeOs) NewSyscallErrorReturns(result1 error)

func (*FakeOs) NewSyscallErrorReturnsOnCall

func (fake *FakeOs) NewSyscallErrorReturnsOnCall(i int, result1 error)

func (*FakeOs) Open

func (fake *FakeOs) Open(arg1 string) (osshim.File, error)

func (*FakeOs) OpenArgsForCall

func (fake *FakeOs) OpenArgsForCall(i int) string

func (*FakeOs) OpenCallCount

func (fake *FakeOs) OpenCallCount() int

func (*FakeOs) OpenCalls

func (fake *FakeOs) OpenCalls(stub func(string) (osshim.File, error))

func (*FakeOs) OpenFile

func (fake *FakeOs) OpenFile(arg1 string, arg2 int, arg3 fs.FileMode) (osshim.File, error)

func (*FakeOs) OpenFileArgsForCall

func (fake *FakeOs) OpenFileArgsForCall(i int) (string, int, fs.FileMode)

func (*FakeOs) OpenFileCallCount

func (fake *FakeOs) OpenFileCallCount() int

func (*FakeOs) OpenFileCalls

func (fake *FakeOs) OpenFileCalls(stub func(string, int, fs.FileMode) (osshim.File, error))

func (*FakeOs) OpenFileReturns

func (fake *FakeOs) OpenFileReturns(result1 osshim.File, result2 error)

func (*FakeOs) OpenFileReturnsOnCall

func (fake *FakeOs) OpenFileReturnsOnCall(i int, result1 osshim.File, result2 error)

func (*FakeOs) OpenReturns

func (fake *FakeOs) OpenReturns(result1 osshim.File, result2 error)

func (*FakeOs) OpenReturnsOnCall

func (fake *FakeOs) OpenReturnsOnCall(i int, result1 osshim.File, result2 error)

func (*FakeOs) Pipe

func (fake *FakeOs) Pipe() (osshim.File, osshim.File, error)

func (*FakeOs) PipeCallCount

func (fake *FakeOs) PipeCallCount() int

func (*FakeOs) PipeCalls

func (fake *FakeOs) PipeCalls(stub func() (osshim.File, osshim.File, error))

func (*FakeOs) PipeReturns

func (fake *FakeOs) PipeReturns(result1 osshim.File, result2 osshim.File, result3 error)

func (*FakeOs) PipeReturnsOnCall

func (fake *FakeOs) PipeReturnsOnCall(i int, result1 osshim.File, result2 osshim.File, result3 error)

func (*FakeOs) ReadDir added in v0.43.0

func (fake *FakeOs) ReadDir(arg1 string) ([]fs.DirEntry, error)

func (*FakeOs) ReadDirArgsForCall added in v0.43.0

func (fake *FakeOs) ReadDirArgsForCall(i int) string

func (*FakeOs) ReadDirCallCount added in v0.43.0

func (fake *FakeOs) ReadDirCallCount() int

func (*FakeOs) ReadDirCalls added in v0.43.0

func (fake *FakeOs) ReadDirCalls(stub func(string) ([]fs.DirEntry, error))

func (*FakeOs) ReadDirReturns added in v0.43.0

func (fake *FakeOs) ReadDirReturns(result1 []fs.DirEntry, result2 error)

func (*FakeOs) ReadDirReturnsOnCall added in v0.43.0

func (fake *FakeOs) ReadDirReturnsOnCall(i int, result1 []fs.DirEntry, result2 error)

func (*FakeOs) ReadFile added in v0.43.0

func (fake *FakeOs) ReadFile(arg1 string) ([]byte, error)

func (*FakeOs) ReadFileArgsForCall added in v0.43.0

func (fake *FakeOs) ReadFileArgsForCall(i int) string

func (*FakeOs) ReadFileCallCount added in v0.43.0

func (fake *FakeOs) ReadFileCallCount() int

func (*FakeOs) ReadFileCalls added in v0.43.0

func (fake *FakeOs) ReadFileCalls(stub func(string) ([]byte, error))

func (*FakeOs) ReadFileReturns added in v0.43.0

func (fake *FakeOs) ReadFileReturns(result1 []byte, result2 error)

func (*FakeOs) ReadFileReturnsOnCall added in v0.43.0

func (fake *FakeOs) ReadFileReturnsOnCall(i int, result1 []byte, result2 error)
func (fake *FakeOs) Readlink(arg1 string) (string, error)

func (*FakeOs) ReadlinkArgsForCall

func (fake *FakeOs) ReadlinkArgsForCall(i int) string

func (*FakeOs) ReadlinkCallCount

func (fake *FakeOs) ReadlinkCallCount() int

func (*FakeOs) ReadlinkCalls

func (fake *FakeOs) ReadlinkCalls(stub func(string) (string, error))

func (*FakeOs) ReadlinkReturns

func (fake *FakeOs) ReadlinkReturns(result1 string, result2 error)

func (*FakeOs) ReadlinkReturnsOnCall

func (fake *FakeOs) ReadlinkReturnsOnCall(i int, result1 string, result2 error)

func (*FakeOs) Remove

func (fake *FakeOs) Remove(arg1 string) error

func (*FakeOs) RemoveAll

func (fake *FakeOs) RemoveAll(arg1 string) error

func (*FakeOs) RemoveAllArgsForCall

func (fake *FakeOs) RemoveAllArgsForCall(i int) string

func (*FakeOs) RemoveAllCallCount

func (fake *FakeOs) RemoveAllCallCount() int

func (*FakeOs) RemoveAllCalls

func (fake *FakeOs) RemoveAllCalls(stub func(string) error)

func (*FakeOs) RemoveAllReturns

func (fake *FakeOs) RemoveAllReturns(result1 error)

func (*FakeOs) RemoveAllReturnsOnCall

func (fake *FakeOs) RemoveAllReturnsOnCall(i int, result1 error)

func (*FakeOs) RemoveArgsForCall

func (fake *FakeOs) RemoveArgsForCall(i int) string

func (*FakeOs) RemoveCallCount

func (fake *FakeOs) RemoveCallCount() int

func (*FakeOs) RemoveCalls

func (fake *FakeOs) RemoveCalls(stub func(string) error)

func (*FakeOs) RemoveReturns

func (fake *FakeOs) RemoveReturns(result1 error)

func (*FakeOs) RemoveReturnsOnCall

func (fake *FakeOs) RemoveReturnsOnCall(i int, result1 error)

func (*FakeOs) Rename

func (fake *FakeOs) Rename(arg1 string, arg2 string) error

func (*FakeOs) RenameArgsForCall

func (fake *FakeOs) RenameArgsForCall(i int) (string, string)

func (*FakeOs) RenameCallCount

func (fake *FakeOs) RenameCallCount() int

func (*FakeOs) RenameCalls

func (fake *FakeOs) RenameCalls(stub func(string, string) error)

func (*FakeOs) RenameReturns

func (fake *FakeOs) RenameReturns(result1 error)

func (*FakeOs) RenameReturnsOnCall

func (fake *FakeOs) RenameReturnsOnCall(i int, result1 error)

func (*FakeOs) SameFile

func (fake *FakeOs) SameFile(arg1 fs.FileInfo, arg2 fs.FileInfo) bool

func (*FakeOs) SameFileArgsForCall

func (fake *FakeOs) SameFileArgsForCall(i int) (fs.FileInfo, fs.FileInfo)

func (*FakeOs) SameFileCallCount

func (fake *FakeOs) SameFileCallCount() int

func (*FakeOs) SameFileCalls

func (fake *FakeOs) SameFileCalls(stub func(fs.FileInfo, fs.FileInfo) bool)

func (*FakeOs) SameFileReturns

func (fake *FakeOs) SameFileReturns(result1 bool)

func (*FakeOs) SameFileReturnsOnCall

func (fake *FakeOs) SameFileReturnsOnCall(i int, result1 bool)

func (*FakeOs) Setenv

func (fake *FakeOs) Setenv(arg1 string, arg2 string) error

func (*FakeOs) SetenvArgsForCall

func (fake *FakeOs) SetenvArgsForCall(i int) (string, string)

func (*FakeOs) SetenvCallCount

func (fake *FakeOs) SetenvCallCount() int

func (*FakeOs) SetenvCalls

func (fake *FakeOs) SetenvCalls(stub func(string, string) error)

func (*FakeOs) SetenvReturns

func (fake *FakeOs) SetenvReturns(result1 error)

func (*FakeOs) SetenvReturnsOnCall

func (fake *FakeOs) SetenvReturnsOnCall(i int, result1 error)

func (*FakeOs) StartProcess

func (fake *FakeOs) StartProcess(arg1 string, arg2 []string, arg3 *os.ProcAttr) (*os.Process, error)

func (*FakeOs) StartProcessArgsForCall

func (fake *FakeOs) StartProcessArgsForCall(i int) (string, []string, *os.ProcAttr)

func (*FakeOs) StartProcessCallCount

func (fake *FakeOs) StartProcessCallCount() int

func (*FakeOs) StartProcessCalls

func (fake *FakeOs) StartProcessCalls(stub func(string, []string, *os.ProcAttr) (*os.Process, error))

func (*FakeOs) StartProcessReturns

func (fake *FakeOs) StartProcessReturns(result1 *os.Process, result2 error)

func (*FakeOs) StartProcessReturnsOnCall

func (fake *FakeOs) StartProcessReturnsOnCall(i int, result1 *os.Process, result2 error)

func (*FakeOs) Stat

func (fake *FakeOs) Stat(arg1 string) (fs.FileInfo, error)

func (*FakeOs) StatArgsForCall

func (fake *FakeOs) StatArgsForCall(i int) string

func (*FakeOs) StatCallCount

func (fake *FakeOs) StatCallCount() int

func (*FakeOs) StatCalls

func (fake *FakeOs) StatCalls(stub func(string) (fs.FileInfo, error))

func (*FakeOs) StatReturns

func (fake *FakeOs) StatReturns(result1 fs.FileInfo, result2 error)

func (*FakeOs) StatReturnsOnCall

func (fake *FakeOs) StatReturnsOnCall(i int, result1 fs.FileInfo, result2 error)
func (fake *FakeOs) Symlink(arg1 string, arg2 string) error

func (*FakeOs) SymlinkArgsForCall

func (fake *FakeOs) SymlinkArgsForCall(i int) (string, string)

func (*FakeOs) SymlinkCallCount

func (fake *FakeOs) SymlinkCallCount() int

func (*FakeOs) SymlinkCalls

func (fake *FakeOs) SymlinkCalls(stub func(string, string) error)

func (*FakeOs) SymlinkReturns

func (fake *FakeOs) SymlinkReturns(result1 error)

func (*FakeOs) SymlinkReturnsOnCall

func (fake *FakeOs) SymlinkReturnsOnCall(i int, result1 error)

func (*FakeOs) TempDir

func (fake *FakeOs) TempDir() string

func (*FakeOs) TempDirCallCount

func (fake *FakeOs) TempDirCallCount() int

func (*FakeOs) TempDirCalls

func (fake *FakeOs) TempDirCalls(stub func() string)

func (*FakeOs) TempDirReturns

func (fake *FakeOs) TempDirReturns(result1 string)

func (*FakeOs) TempDirReturnsOnCall

func (fake *FakeOs) TempDirReturnsOnCall(i int, result1 string)

func (*FakeOs) Truncate

func (fake *FakeOs) Truncate(arg1 string, arg2 int64) error

func (*FakeOs) TruncateArgsForCall

func (fake *FakeOs) TruncateArgsForCall(i int) (string, int64)

func (*FakeOs) TruncateCallCount

func (fake *FakeOs) TruncateCallCount() int

func (*FakeOs) TruncateCalls

func (fake *FakeOs) TruncateCalls(stub func(string, int64) error)

func (*FakeOs) TruncateReturns

func (fake *FakeOs) TruncateReturns(result1 error)

func (*FakeOs) TruncateReturnsOnCall

func (fake *FakeOs) TruncateReturnsOnCall(i int, result1 error)

func (*FakeOs) Unsetenv

func (fake *FakeOs) Unsetenv(arg1 string) error

func (*FakeOs) UnsetenvArgsForCall

func (fake *FakeOs) UnsetenvArgsForCall(i int) string

func (*FakeOs) UnsetenvCallCount

func (fake *FakeOs) UnsetenvCallCount() int

func (*FakeOs) UnsetenvCalls

func (fake *FakeOs) UnsetenvCalls(stub func(string) error)

func (*FakeOs) UnsetenvReturns

func (fake *FakeOs) UnsetenvReturns(result1 error)

func (*FakeOs) UnsetenvReturnsOnCall

func (fake *FakeOs) UnsetenvReturnsOnCall(i int, result1 error)

func (*FakeOs) WriteFile added in v0.43.0

func (fake *FakeOs) WriteFile(arg1 string, arg2 []byte, arg3 fs.FileMode) error

func (*FakeOs) WriteFileArgsForCall added in v0.43.0

func (fake *FakeOs) WriteFileArgsForCall(i int) (string, []byte, fs.FileMode)

func (*FakeOs) WriteFileCallCount added in v0.43.0

func (fake *FakeOs) WriteFileCallCount() int

func (*FakeOs) WriteFileCalls added in v0.43.0

func (fake *FakeOs) WriteFileCalls(stub func(string, []byte, fs.FileMode) error)

func (*FakeOs) WriteFileReturns added in v0.43.0

func (fake *FakeOs) WriteFileReturns(result1 error)

func (*FakeOs) WriteFileReturnsOnCall added in v0.43.0

func (fake *FakeOs) WriteFileReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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