Documentation ¶
Overview ¶
Package assertion provides a set of utilities for making assertions in Go.
Index ¶
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListMissing ¶
ListMissing logs an error if the list contains the value
func MapContains ¶
MapContains logs an error if the map does not contain the key-value pair
func MapMissing ¶
MapMissing logs an error if the map contains the key-value pair
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.