system

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2014 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeFileInfo

type FakeFileInfo struct {
	// contains filtered or unexported fields
}

func (*FakeFileInfo) IsDir

func (self *FakeFileInfo) IsDir() bool

func (*FakeFileInfo) ModTime

func (self *FakeFileInfo) ModTime() time.Time

func (*FakeFileInfo) Mode

func (self *FakeFileInfo) Mode() os.FileMode

func (*FakeFileInfo) Name

func (self *FakeFileInfo) Name() string

func (*FakeFileInfo) Size

func (self *FakeFileInfo) Size() int64

func (*FakeFileInfo) Sys

func (self *FakeFileInfo) Sys() interface{}

type FakeFileSystem

type FakeFileSystem struct {
	// contains filtered or unexported fields
}

func NewFakeFileSystem

func NewFakeFileSystem() *FakeFileSystem

func (*FakeFileSystem) Create

func (self *FakeFileSystem) Create(path string, size int64, modified time.Time)

func (*FakeFileSystem) Delete

func (self *FakeFileSystem) Delete(path string)

func (*FakeFileSystem) Exists

func (self *FakeFileSystem) Exists(directory string) bool

func (*FakeFileSystem) Listing added in v1.5.0

func (self *FakeFileSystem) Listing(directory string) ([]os.FileInfo, error)

func (*FakeFileSystem) Modify

func (self *FakeFileSystem) Modify(path string)

func (*FakeFileSystem) Rename

func (self *FakeFileSystem) Rename(original, modified string)

func (*FakeFileSystem) Walk

func (self *FakeFileSystem) Walk(root string, step filepath.WalkFunc)

type FakeShell

type FakeShell struct {
	// contains filtered or unexported fields
}

func NewFakeShell

func NewFakeShell() *FakeShell

func (*FakeShell) Executions added in v1.5.0

func (self *FakeShell) Executions() []string

func (*FakeShell) Getenv

func (self *FakeShell) Getenv(key string) string

func (*FakeShell) GoTest added in v1.5.0

func (self *FakeShell) GoTest(directory string) (output string, err error)

func (*FakeShell) Setenv

func (self *FakeShell) Setenv(key, value string) error

type FileSystem

type FileSystem struct{}

func NewFileSystem

func NewFileSystem() *FileSystem

func (*FileSystem) Exists

func (self *FileSystem) Exists(directory string) bool

func (*FileSystem) Listing added in v1.5.0

func (self *FileSystem) Listing(directory string) ([]os.FileInfo, error)

func (*FileSystem) Walk

func (self *FileSystem) Walk(root string, step filepath.WalkFunc)

type Shell

type Shell struct {
	// contains filtered or unexported fields
}

func NewShell

func NewShell(gobin string) *Shell

func (*Shell) Getenv

func (self *Shell) Getenv(key string) string

func (*Shell) GoTest added in v1.5.0

func (self *Shell) GoTest(directory string) (output string, err error)

func (*Shell) Setenv

func (self *Shell) Setenv(key, value string) error

Jump to

Keyboard shortcuts

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