testutil

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Warn is used when printing warnings
	Warn = (ct.Fg(ct.White) | ct.Bg(ct.Red) | ct.Bold).Paint
	// Okay is used when printing text signifying a passed test
	Okay = (ct.Fg(ct.Green) | ct.Bold).Paint
	// Info is used for info messages
	Info = (ct.Fg(ct.Magenta)).Paint
	// Notice is used for less important info messages
	Notice = (ct.Fg(ct.Magenta) | ct.Faint).Paint

	// String is used when printing strings
	String = (ct.Fg(ct.Yellow).Paint)
)

Functions

func Compare

func Compare(t *testing.T, expected string, out string)

Compare data with the expected data and prints test output

Types

This section is empty.

Jump to

Keyboard shortcuts

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