test

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(tb testing.TB, condition bool, msg string, v ...interface{})

Assert fails the test if the condition is false.

func Contains

func Contains(slice []string, val string) bool

Contains returns a bool indicating whether the slice contains the given val

func ItemsMatch

func ItemsMatch(tb testing.TB, exp, act []string)

ItemsMatch fails the test if the items in exp and act slices dont match. A nil argument is equivalent to an empty slice.

func Ok

func Ok(tb testing.TB, err error)

Ok fails the test if an err is not nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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