Documentation
¶
Overview ¶
General utilities including utilities for unit testing
Index ¶
- func AssertEquals(t *testing.T, context string, expected, result interface{})
- func AssertErrorEquals(t *testing.T, context string, expected, result interface{})
- func AssertFalse(t *testing.T, context string, test bool)
- func AssertNoError(t *testing.T, context string, err error)
- func AssertTrue(t *testing.T, context string, test bool)
- func JsonStack(panicMsg interface{}, rawTrace []byte) string
- func JsonStringify(data interface{}) string
- func Slug(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEquals ¶
func AssertErrorEquals ¶
func JsonStringify ¶
func JsonStringify(data interface{}) string
Create a JSON string from an interface, or an empty string if it cannot be marshalled
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.