util

package
v4.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 15, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertBooleanEquals

func AssertBooleanEquals(t *testing.T, expected bool, tested bool, msg string)

func AssertDirExists

func AssertDirExists(t *testing.T, path string)

func AssertDurationEquals

func AssertDurationEquals(t *testing.T, expected time.Duration, tested time.Duration, msg string)

func AssertFileExists

func AssertFileExists(t *testing.T, path string)

func AssertFileNotExists

func AssertFileNotExists(t *testing.T, path string)

func AssertHasError

func AssertHasError(t *testing.T, err error)

func AssertIntEquals

func AssertIntEquals(t *testing.T, expected int, tested int, msg string)

func AssertNoError

func AssertNoError(t *testing.T, err error)

func AssertStringContains

func AssertStringContains(t *testing.T, haystack string, needle string, msg string)

func AssertStringEquals

func AssertStringEquals(t *testing.T, expected string, tested string, msg string)

func AssertStringIsNotEmpty

func AssertStringIsNotEmpty(t *testing.T, haystack string, msg string)

func PipeToLog

func PipeToLog(prefix string, rc io.ReadCloser)

func PipeToLogrus

func PipeToLogrus(ctx log.FieldLogger, rc io.ReadCloser)

func TestCreateTempDir

func TestCreateTempDir(t *testing.T) (string, func())

Types

This section is empty.

Jump to

Keyboard shortcuts

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