Documentation
¶
Index ¶
Constants ¶
View Source
const ( UserUsername = "test@test.com" UserPassword = "00000000" )
Variables ¶
This section is empty.
Functions ¶
func JsonToString ¶
func JsonToString(d interface{}) string
JsonToString converts a JSON to a string.
Types ¶
type Test ¶
type Test struct { Description string // Test input Route string Method string Body io.Reader Headers []Header // Check CheckError bool CheckBody bool CheckCode bool // Expected output ExpectedError bool ExpectedCode int ExpectedBody string }
Test defines a structure for specifying input and output data of a single test case.
Click to show internal directories.
Click to hide internal directories.