test

package
v0.0.0-...-8b8bf39 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(tb testing.TB, result bool)

Assert checks the result of a predicate.

func Equals

func Equals(tb testing.TB, expected, actual interface{})

Equals performs a deep equal comparison against two values and fails if they are not the same.

func ErrorExists

func ErrorExists(tb testing.TB, exp bool, err error)

ErrorExists fails if an error is expected but doesn't exist or if an error is exists but is not expected. It does not check equality.

func StringEquals

func StringEquals(tb testing.TB, expected, actual interface{})

StringEquals performs a comparison against two values values by comparing their string values and fails if they are not the same.

Types

This section is empty.

Jump to

Keyboard shortcuts

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