tests

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capture

func Capture(file *os.File, fn func()) string

Capture captures stderr or stdout.

Types

type LogWriter

type LogWriter struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

LogWriter implements io.Writer.

func (*LogWriter) Flush

func (w *LogWriter) Flush()

Flush flushes the write buffer

func (*LogWriter) Quote

func (w *LogWriter) Quote() string

Quote returns the quoted output.

func (*LogWriter) String

func (w *LogWriter) String() string

func (*LogWriter) Time

func (w *LogWriter) Time() (time.Time, error)

Time returns the time in the current output line.

func (*LogWriter) Write

func (w *LogWriter) Write(b []byte) (int, error)

Directories

Path Synopsis
ioctldevice tests cannnot be run via `go test`.
ioctldevice tests cannnot be run via `go test`.

Jump to

Keyboard shortcuts

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