diagnostics

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package diagnostics provides the Diagnostics interface for reporting various test statistics as well as a no-op implementation of the interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostics

type Diagnostics interface {
	// Name is the name of the component used in error messages.
	Name() string
	// Timing reports timing info.
	Timing(component, description, detail string, begin, end time.Time) error
	// Severe reports an error that is highly likely to cause problems in tests.
	Severe(err error) error
	// Warning reports a error that is unlikely to cause problems in tests, but
	// that you want to track anyway.
	Warning(err error) error
	// Close closes this diagnostics object.
	Close() error
}

Diagnostics manages and outputs a test diagnostics.

func NoOP

func NoOP() Diagnostics

NoOP creates a new empty Diagnostics object.

Jump to

Keyboard shortcuts

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