Documentation ¶
Overview ¶
Package testutil can be .-imported to gain access to useful test functions.
Index ¶
Constants ¶
View Source
const TestAPIKey = "166f5ad3590596f9aa8d601ea89af845"
TestAPIKey is a fake API key that can be used for testing
Variables ¶
This section is empty.
Functions ¶
func AssertPayload ¶
func AssertPayload(t *testing.T, report *simplejson.Json, expPretty string)
AssertPayload compares the payload that was received by the event-server to the expected report JSON payload
func Get ¶
func Get(j *simplejson.Json, path string) *simplejson.Json
Get travels through a JSON object and returns the specified node
func GetIndex ¶
func GetIndex(j *simplejson.Json, path string, n int) *simplejson.Json
GetIndex returns the n-th element of the specified path inside the given JSON object
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.