assert

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEqual

func IsEqual(v1, v2 interface{}, v ...interface{})

IsEqual panics if the two supplied arguments are not equal.

func IsTrue

func IsTrue(val bool, v ...interface{})

IsTrue fails with a log message if the value is not true.

func NoError

func NoError(err error, v ...interface{})

NoError panics with log message if the argument error is not nil.

func StringSliceHasAtLeast

func StringSliceHasAtLeast(vals []string, num int, v ...interface{})

StringSliceHasAtLeast panics with a log message if the slice passed as argument has a size smaller than expected.

Types

This section is empty.

Jump to

Keyboard shortcuts

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