Documentation ¶
Overview ¶
Package testutils provides utilities used in tests
Index ¶
- func AssertDeepEqual(t *testing.T, a interface{}, b interface{}, message string)
- func AssertEqual(t *testing.T, a interface{}, b interface{}, message string)
- func AssertNotEqual(t *testing.T, a interface{}, b interface{}, message string)
- func ClearTmp(ctx infra.DnoteCtx)
- func InitCtx(relPath string) infra.DnoteCtx
- func ReadFile(ctx infra.DnoteCtx, filename string) []byte
- func ReadJSON(path string, destination interface{})
- func SetupTmp(ctx infra.DnoteCtx)
- func WriteFile(ctx infra.DnoteCtx, fixturePath string, filename string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertDeepEqual ¶
AssertDeepEqual fails a test if the actual does not deeply equal the expected
func AssertEqual ¶
AssertEqual fails a test if the actual does not match the expected
func AssertNotEqual ¶
AssertNotEqual fails a test if the actual matches the expected
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.