assert

package
v0.0.0-...-8352b7d Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(t *testing.T, condition bool, msg string, v ...interface{})

Assert fails the test if the condition is false.

func Equals

func Equals(t *testing.T, exp, act interface{})

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

func False

func False(t *testing.T, condition bool)

False fails the test if the condition is true

func Implements

func Implements(t *testing.T, exp interface{}, v interface{})

Implements fails the test if v doesn't implement an interface type from exp

func Ok

func Ok(t *testing.T, err error)

Ok fails the test if an err is not nil.

func Panics

func Panics(t *testing.T, msg string, f func())

Panics fails the test if running f doesn't panic with msg

func True

func True(t *testing.T, condition bool)

True fails the test if the condition is false

Types

This section is empty.

Jump to

Keyboard shortcuts

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