testutil

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCI added in v0.14.0

func IsCI() bool

Types

type TestDiagSink

type TestDiagSink struct {
	Pwd string
	// contains filtered or unexported fields
}

TestDiagSink suppresses message output, but captures them, so that they can be compared to expected results.

func NewTestDiagSink

func NewTestDiagSink(pwd string) *TestDiagSink

func (*TestDiagSink) DebugMsgs

func (d *TestDiagSink) DebugMsgs() []string

func (*TestDiagSink) Debugf

func (d *TestDiagSink) Debugf(dia *diag.Diag, args ...interface{})

func (*TestDiagSink) ErrorMsgs

func (d *TestDiagSink) ErrorMsgs() []string

func (*TestDiagSink) Errorf

func (d *TestDiagSink) Errorf(dia *diag.Diag, args ...interface{})

func (*TestDiagSink) InfoMsgs

func (d *TestDiagSink) InfoMsgs() []string

func (*TestDiagSink) Infof

func (d *TestDiagSink) Infof(dia *diag.Diag, args ...interface{})

func (*TestDiagSink) Logf

func (d *TestDiagSink) Logf(sev diag.Severity, dia *diag.Diag, args ...interface{})

func (*TestDiagSink) Stringify

func (d *TestDiagSink) Stringify(sev diag.Severity, dia *diag.Diag, args ...interface{}) (string, string)

func (*TestDiagSink) WarningMsgs

func (d *TestDiagSink) WarningMsgs() []string

func (*TestDiagSink) Warningf

func (d *TestDiagSink) Warningf(dia *diag.Diag, args ...interface{})

Jump to

Keyboard shortcuts

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