assert

package
v0.0.0-...-9489dbf Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2017 License: MPL-2.0 Imports: 2 Imported by: 0

README

The API for these asserts intentionally mimics that of testify and is intended as a lightweight placeholder until we need a more robust testing lib.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(t *testing.T, got, expected interface{}, msg string)

Equal asserts two interfaces are equal

func Error

func Error(t *testing.T, err error, expected string)

Error asserts we got a particular error

func False

func False(t *testing.T, expected interface{}, msg string)

False asserts that an interface is equal to boolean "false"

func True

func True(t *testing.T, expected interface{}, msg string)

True asserts that an interface is equal to boolean "true"

Types

This section is empty.

Jump to

Keyboard shortcuts

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