Documentation
¶
Index ¶
- func AlmostEqual(a, b float64) bool
- func Assert(tb testing.TB, condition bool, msg string, v ...interface{})
- func ContainsString(tb testing.TB, exp string, act []string)
- func Equals(tb testing.TB, exp, act interface{})
- func FileEquals(tb testing.TB, exp, act string)
- func Ok(tb testing.TB, err error)
- func RandomPassword(length int) string
- func RandomString(length int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlmostEqual ¶
AlmostEqual compares two floats so see if they are roughly equal
func ContainsString ¶ added in v0.15.0
Check if a string is found in a given slice of strings
func FileEquals ¶
FileEquals fails if the SHA256 checksum of the exp if not equal to the checksum of the act
func RandomPassword ¶ added in v0.14.14
RandomPassword generate a random password that meets the default Cumulocity IoT password policy
func RandomString ¶
RandomString returns a random string of the given length
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.