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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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