Documentation
¶
Index ¶
- type Goroutine
- type Program
- type Run
- type Runner
- type TestGroup
- func (t *TestGroup) CompareStreams(r1 io.ReadCloser, r2 io.ReadCloser, length int64) *Goroutine
- func (t *TestGroup) CopyStreams(r io.ReadCloser, w io.WriteCloser, written *int64) *Goroutine
- func (t *TestGroup) Drain(f io.ReadCloser, desc string) <-chan []byte
- func (t *TestGroup) Empty(f io.ReadCloser, desc string) *Goroutine
- func (t *TestGroup) Exec(desc string, p Program, srcfifo bool, flags []string) (*Run, error)
- func (t *TestGroup) Fail(v ...interface{})
- func (t *TestGroup) Go(name string, f func(*Goroutine)) *Goroutine
- func (t *TestGroup) Main() *Goroutine
- func (t *TestGroup) Panic(err error)
- func (t *TestGroup) TestWrite(what string, f io.WriteCloser, b []byte) *Goroutine
- func (t *TestGroup) Wait(procs ...*Run)
- func (t *TestGroup) WriteRstreams(desc string, seed, offset, len int64, src, tgt io.WriteCloser)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Run ¶
type Run struct { Cmd exec.Cmd Srcfile string Stdin io.WriteCloser Srcin io.WriteCloser Stdout io.ReadCloser Stderr io.ReadCloser }
type TestGroup ¶
type TestGroup struct { *Runner sync.Mutex sync.WaitGroup // contains filtered or unexported fields }
func (*TestGroup) CompareStreams ¶
func (t *TestGroup) CompareStreams(r1 io.ReadCloser, r2 io.ReadCloser, length int64) *Goroutine
func (*TestGroup) CopyStreams ¶
func (t *TestGroup) CopyStreams(r io.ReadCloser, w io.WriteCloser, written *int64) *Goroutine
func (*TestGroup) WriteRstreams ¶
func (t *TestGroup) WriteRstreams(desc string, seed, offset, len int64, src, tgt io.WriteCloser)
Click to show internal directories.
Click to hide internal directories.