testutils

package
v0.21.4 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: GPL-3.0 Imports: 3 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, format string, a ...interface{})

Assert fails the test if the condition is false.

func Equals

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

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

func ErrorEqual

func ErrorEqual(tb testing.TB, left, right error, msgAndArgs ...interface{})

ErrorEqual compares Go errors for equality.

func NotOk

func NotOk(tb testing.TB, err error, a ...interface{})

NotOk fails the test if an err is nil.

func Ok

func Ok(tb testing.TB, err error)

Ok fails the test if an err is not nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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