objectbox-go: github.com/objectbox/objectbox-go/test/assert Index | Files

package assert

import "github.com/objectbox/objectbox-go/test/assert"

Index

Package Files

assert.go

func Eq Uses

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

Uses reflect.DeepEqual to test for equality

func EqItems Uses

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

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

func Fail Uses

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

func Failf Uses

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

func MustPanic Uses

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 Uses

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

func NotEq Uses

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

Uses reflect.DeepEqual to test for equality

func True Uses

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

Package assert imports 6 packages (graph) and is imported by 3 packages. Updated 2019-10-16. Refresh now. Tools for package owners.