testutils

package
v0.2.1-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package testutils provides utilities used in tests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertDeepEqual

func AssertDeepEqual(t *testing.T, a interface{}, b interface{}, message string)

AssertDeepEqual fails a test if the actual does not deeply equal the expected

func AssertEqual

func AssertEqual(t *testing.T, a interface{}, b interface{}, message string)

AssertEqual fails a test if the actual does not match the expected

func AssertNotEqual

func AssertNotEqual(t *testing.T, a interface{}, b interface{}, message string)

AssertNotEqual fails a test if the actual matches the expected

func ClearTmp

func ClearTmp(ctx infra.DnoteCtx)

func InitCtx

func InitCtx(relPath string) infra.DnoteCtx

func ReadFile

func ReadFile(ctx infra.DnoteCtx, filename string) []byte

func ReadJSON

func ReadJSON(path string, destination interface{})

ReadJSON reads JSON fixture to the struct at the destination address

func SetupTmp

func SetupTmp(ctx infra.DnoteCtx)

func WriteFile

func WriteFile(ctx infra.DnoteCtx, fixturePath string, filename string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL