testutil

package
v0.15.4-dev Latest Latest
Warning

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

Go to latest
Published: Sep 19, 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

IsCI returns true when the current system looks like a CI system. Detection is based on environment variables that CI vendors we know about set.

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