testutil

package
v0.16.19 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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