assert

package
v0.0.0-...-42befb5 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package assert provides basic assert functions for tests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(t *testing.T, a interface{}, b interface{}, msg string)

Equal verifies that a is equal to b.

func Err

func Err(t *testing.T, err error, msgs ...string)

Err verifies that err is not nil.

func False

func False(t *testing.T, v bool, msgs ...string)

False verifies that v is false.

func Nil

func Nil(t *testing.T, obj interface{}, msgs ...string)

Nil verifies that obj is nil.

func NoErr

func NoErr(t *testing.T, err error, msgs ...string)

NoErr verifies that err is nil.

func NotNil

func NotNil(t *testing.T, obj interface{}, msgs ...string)

NotNil verifies that obj is not nil.

func True

func True(t *testing.T, v bool, msgs ...string)

True verifies that v is true.

Types

This section is empty.

Jump to

Keyboard shortcuts

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