tests

package
v0.0.0-...-2cdba53 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(tb testing.TB, condition bool, msg string, v ...interface{})

Assert fails the test if the condition is false. Taken from https://github.com/benbjohnson/testing.

func Equals

func Equals(tb testing.TB, exp, act interface{})

Equals fails the test if exp is not equal to act. Taken from https://github.com/benbjohnson/testing.

func ErrEquals

func ErrEquals(tb testing.TB, exp string, act error)

ErrEquals fails the test if act is nil or act.Error() != exp

func Ok

func Ok(tb testing.TB, err error)

Ok fails the test if an err is not nil. Taken from https://github.com/benbjohnson/testing.

func ScannerErrEquals

func ScannerErrEquals(tb testing.TB, exp string, act error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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