Documentation
¶
Index ¶
- func TestHelperMain()
- type Tester
- func (pt *Tester) AddToCgroup(t *testing.T, cgroupPath string)
- func (pt *Tester) Command(s string) (string, error)
- func (pt *Tester) Exec(cmd string) (string, error)
- func (pt *Tester) ExecMayFail(cmd string) (string, error)
- func (pt *Tester) Lseek(fd, off, whence int) (string, error)
- func (pt *Tester) Ping() error
- func (pt *Tester) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Tester ¶
Tester provides an interface to using tester from tests
func (*Tester) Exec ¶
Exec is very basic. tester will split arguments using strings.Fields() (see TesterMain), execute the comand, and return its combined output in stdout.
func (*Tester) ExecMayFail ¶ added in v1.4.0
similar to Exec, but command may fail
Click to show internal directories.
Click to hide internal directories.