testing

package
v0.0.119 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualError

func EqualError(actual error, expected error, a ...interface{}) (bool, string)

EqualError asserts that a function returned an error (i.e. not `nil`) and that it is equal to the provided error.

func EqualErrorf

func EqualErrorf(actual error, expected error, format string, a ...interface{}) (bool, string)

func Error

func Error(v interface{}, a ...interface{}) (bool, string)

Error asserts that a function returned an error (i.e. not `nil`).

func Errorf

func Errorf(v interface{}, format string, a ...interface{}) (bool, string)

func Nil

func Nil(v interface{}, a ...interface{}) (bool, string)

Nil asserts that the specified object is nil.

func Nilf

func Nilf(v interface{}, format string, a ...interface{}) (bool, string)

func NonError

func NonError(v interface{}, a ...interface{}) (bool, string)

NonError asserts that a function returned a none error (i.e. `nil`).

func NonErrorf

func NonErrorf(v interface{}, format string, a ...interface{}) (bool, string)

func NonNil

func NonNil(v interface{}, a ...interface{}) (bool, string)

NonNil asserts that the specified object is none nil.

func NonNilf

func NonNilf(v interface{}, format string, a ...interface{}) (bool, string)

func NonZero

func NonZero(v interface{}, a ...interface{}) (bool, string)

NonZero asserts that the specified object is none zero.

func NonZerof

func NonZerof(v interface{}, format string, a ...interface{}) (bool, string)

func Zero

func Zero(v interface{}, a ...interface{}) (bool, string)

Zero asserts that the specified object is zero. I.e. nil, "", false, 0 or either a slice or a channel with len == 0.

func Zerof

func Zerof(v interface{}, format string, a ...interface{}) (bool, string)

Types

This section is empty.

Directories

Path Synopsis
Package leakcheck contains functions to check leaked goroutines.
Package leakcheck contains functions to check leaked goroutines.

Jump to

Keyboard shortcuts

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