package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Jul 29, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Empty(obj any) bool
-
func Equal(expected, actual any) bool
-
func HasValue(m map[string]any, value any) bool
-
func Len(obj any, expected int) bool
-
func ListHas(value any, list ...any) bool
-
func ListMissing(t *testing.T, value any, list ...any) bool
-
func MapContains(m map[string]any, key string, value any) bool
-
func MapMissing(m map[string]any, key string, value any) bool
-
func NotEmpty(obj any) bool
-
func NotEqual(expected, actual any) bool
Empty checks if an object is empty
func Equal(expected, actual any) bool
Equal compares the expected and actual values and logs an error if they are not equal
HasValue logs an error if the value is not a member of the map
Len checks if the length of an object is equal to the expected length
ListHas logs an error if the list does not contain the value
ListMissing logs an error if the list contains the value
MapContains logs an error if the map does not contain the key-value pair
MapMissing logs an error if the map contains the key-value pair
func NotEqual(expected, actual any) bool
NotEqual compares the expected and actual values and logs an error if they are equal
Source Files
¶
Click to show internal directories.
Click to hide internal directories.