assert

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: MIT Imports: 5 Imported by: 0

README

assert

A Go package of test assertions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equals added in v1.7.0

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

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

func False added in v1.8.0

func False(tb testing.TB, condition bool, message string, v ...interface{})

False fails the test if the condition is true

func NoError added in v1.7.0

func NoError(tb testing.TB, err error)

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

func True added in v1.7.0

func True(tb testing.TB, condition bool, message string, v ...interface{})

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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