assert

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eq

func Eq(t *testing.T, expected interface{}, actual interface{})

Uses reflect.DeepEqual to test for equality

func EqItems added in v0.9.0

func EqItems(t *testing.T, expected interface{}, actual interface{})

EqItems checks whether two slices have the same elements (regardless of their order)

func Fail

func Fail(t *testing.T, text string)

func Failf

func Failf(t *testing.T, format string, args ...interface{})

func MustPanic added in v0.9.0

func MustPanic(t *testing.T, match *regexp.Regexp)

mustPanic ensures that the caller's context will panic and that the panic will match the given regular expression

  func() {
  	defer mustPanic(t, regexp.MustCompile("+*"))
		panic("some text")
  }

func NoErr

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

func NotEq added in v0.9.0

func NotEq(t *testing.T, notThisValue interface{}, actual interface{})

Uses reflect.DeepEqual to test for equality

Types

This section is empty.

Jump to

Keyboard shortcuts

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