testutils

package
v0.0.0-...-32e7b76 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckByte

func CheckByte(exp, obs byte, t *testing.T)

CheckByte ensures the given bytes are equal

func CheckByteSlice

func CheckByteSlice(exp, obs []byte, t *testing.T)

CheckByteSlice ensures that the two byte slices are equal

func CheckErr

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

CheckErr converts a runtime error into a testing error

func CheckInt

func CheckInt(exp, obs int, t *testing.T)

CheckInt ensures the given ints are equal

func CheckInt64

func CheckInt64(exp, obs int64, t *testing.T)

CheckInt64 ensures the given int64s are equal

func CheckSlice

func CheckSlice(exp, obs []int, t *testing.T)

CheckSlice ensures that the two int slices are equal

func CheckString

func CheckString(exp, obs string, t *testing.T)

CheckString ensures the given strings are equal

func CheckStringSlice

func CheckStringSlice(exp, obs []string, t *testing.T)

CheckStringSlice ensures that the two string slices are equal

func CheckUint

func CheckUint(exp, obs uint, t *testing.T)

CheckUint ensures the given uints are equal

func CheckUint32

func CheckUint32(exp, obs uint32, t *testing.T)

CheckUint ensures the given uints are equal

func CheckUint64

func CheckUint64(exp, obs uint64, t *testing.T)

CheckUint64 ensures the given uint64s are equal

func ExpectFalse

func ExpectFalse(obs bool, message string, t *testing.T)

ExpectFalse ensures the given resolved expresion is false

func ExpectNil

func ExpectNil(obs interface{}, message string, t *testing.T)

ExpectNil ensures the given expression is nil

func ExpectTrue

func ExpectTrue(obs bool, message string, t *testing.T)

ExpectTrue ensures the given resolved expression 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