assert

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2019 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package assert is a helper package for test assertions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(t testing.TB, exp, act interface{}, name string)

Equal asserts exp == act. If they are not equal, it will fatal the test with a diff of the differences.

func Success

func Success(t testing.TB, err error, name string)

Success asserts err == nil.

func True

func True(t testing.TB, act bool, name string)

True act == true.

Types

This section is empty.

Jump to

Keyboard shortcuts

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