Documentation
¶
Index ¶
- Constants
- func DeepEqual[T comparable](t Tester, expected, result T)
- func Equal[T comparable](t Tester, expected T, result T)
- func GetFieldNames[T any](obj T) []string
- func IsInterfaceNil(value interface{}) bool
- func IsStruct[T any](expected T) bool
- func Slices[T comparable](t Tester, expectedSlice []T, resultSlice []T)
- func StringifyedStruct[T any](expected T) string
- func StructToMap(in interface{}) map[string]interface{}
- type Tester
Constants ¶
View Source
const ERROR_MSG = "expected %v, got %v"
Variables ¶
This section is empty.
Functions ¶
func DeepEqual ¶
func DeepEqual[T comparable](t Tester, expected, result T)
func Equal ¶
func Equal[T comparable](t Tester, expected T, result T)
func GetFieldNames ¶
func IsInterfaceNil ¶
func IsInterfaceNil(value interface{}) bool
func Slices ¶
func Slices[T comparable](t Tester, expectedSlice []T, resultSlice []T)
func StringifyedStruct ¶
func StructToMap ¶
func StructToMap(in interface{}) map[string]interface{}
Types ¶
Click to show internal directories.
Click to hide internal directories.