package
Version:
v0.0.10
Opens a new window with list of versions in this module.
Published: Feb 27, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Assert(tb testing.TB, condition bool, msg string, v ...interface{})
-
func Contains(slice []string, val string) bool
-
func Equals(tb testing.TB, exp, act interface{})
-
func ItemsMatch(tb testing.TB, exp, act []string)
-
func Nok(tb testing.TB, err error)
-
func Ok(tb testing.TB, err error)
Assert fails the test if the condition is false.
Contains returns a bool indicating whether the slice contains the given val
func Equals(tb testing.TB, exp, act interface{})
Equals fails the test if exp is not equal to act.
ItemsMatch fails the test if the items in exp and act slices dont match.
A nil argument is equivalent to an empty slice.
Nok fails the test if an err is nil.
Ok fails the test if an err is not nil.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.