Documentation
¶
Overview ¶
Package utils contains functions supporting approval testing.
Index ¶
- func AssertEqual(t *testing.T, expected, actual interface{}, message string)
- func DoesFileExist(fileName string) bool
- func EnsureExists(fileName string)
- func MapToString(collection interface{}, transform func(x interface{}) string) []string
- func PrintArray(m interface{}) string
- func PrintMap(m interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEqual ¶
AssertEqual Example: AssertEqual(t, 10, number, "number")
func DoesFileExist ¶
DoesFileExist checks if a file exists.
func EnsureExists ¶
func EnsureExists(fileName string)
EnsureExists creates if the file does not already exist.
func MapToString ¶
MapToString maps a collection to a string collection
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.