tos

package
v0.0.0-...-6a56cfb Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chdir

func Chdir(t testing.TB, dir string)

func Chmod

func Chmod(t testing.TB, name string, mode os.FileMode)

func Create

func Create(t testing.TB, name string) *os.File

func CreateTemp

func CreateTemp(t testing.TB, dir, pattern string) *os.File

func Executable

func Executable(t testing.TB) string

func FindProcess

func FindProcess(t testing.TB, pid int) *os.Process

func Getgroups

func Getgroups(t testing.TB) []int

func Getwd

func Getwd(t testing.TB) (dir string)

func Hostname

func Hostname(t testing.TB) (name string)

func Lstat

func Lstat(t testing.TB, name string) os.FileInfo

func Mkdir

func Mkdir(t testing.TB, name string, perm os.FileMode)

func MkdirAll

func MkdirAll(t testing.TB, path string, perm os.FileMode)

func MkdirTemp

func MkdirTemp(t testing.TB, dir, pattern string) string

func NewSyscallError

func NewSyscallError(t testing.TB, syscall string, err error)

func Open

func Open(t testing.TB, name string) *os.File

func OpenFile

func OpenFile(t testing.TB, name string, flag int, perm os.FileMode) *os.File

func Pipe

func Pipe(t testing.TB) (r *os.File, w *os.File)

func ReadDir

func ReadDir(t testing.TB, name string) []os.DirEntry

func ReadFile

func ReadFile(t testing.TB, name string) []byte

func RemoveAll

func RemoveAll(t testing.TB, path string)

func Rename

func Rename(t testing.TB, oldpath, newpath string)

func Setenv

func Setenv(t testing.TB, key, value string)

func StartProcess

func StartProcess(t testing.TB, name string, argv []string, attr *os.ProcAttr) *os.Process

func Stat

func Stat(t testing.TB, name string) os.FileInfo

func Unsetenv

func Unsetenv(t testing.TB, key string)

func UserCacheDir

func UserCacheDir(t testing.TB) string

func UserConfigDir

func UserConfigDir(t testing.TB) string

func UserHomeDir

func UserHomeDir(t testing.TB) string

func WriteFile

func WriteFile(t testing.TB, name string, data []byte, perm os.FileMode)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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