package
Version:
v1.0.0-alpha.5
Opens a new window with list of versions in this module.
Published: Apr 17, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 7
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, value string) (bool, int)
-
func Equals(tb testing.TB, exp, act interface{})
-
func EqualsMultipleExp(tb testing.TB, exp interface{}, act interface{})
-
func GenerateRandomString(n int) string
-
func NotEquals(tb testing.TB, exp, act interface{})
-
func OK(tb testing.TB, err error)
-
func SliceContains(slice [][]string, value []string) (bool, int)
Assert fails the test if the condition is false.
Contains returns whether slice contains the value
func Equals(tb testing.TB, exp, act interface{})
Equals fails the test if exp is not equal to act.
func EqualsMultipleExp(tb testing.TB, exp interface{}, act interface{})
EqualsMultipleExp fails the test if exp is not equal to one of act.
GenerateRandomString to have a unique code
func NotEquals(tb testing.TB, exp, act interface{})
NotEquals fails the test if exp is equal to act.
OK fails the test if an err is not nil.
SliceContains returns whether slice contains the slice
Source Files
¶
Click to show internal directories.
Click to hide internal directories.