test

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

README

go-test

miniature test helpers for assertion

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.

func Equals

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

Equals fails the test if exp is not equal to act.

func Ok

func Ok(tb testing.TB, errs ...error)

Ok fails the test if an err is not nil.

func OkEquals added in v1.0.1

func OkEquals(tb testing.TB, exp interface{}) func(act interface{}, err error)

OkEquals return an asserter that fails if error not is nil or the value doesn't equal what was expected

Types

This section is empty.

Jump to

Keyboard shortcuts

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