Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureStdout ¶
func CaptureStdout(f func()) string
func MockHttpServer ¶
MockHttpServer creates a test server which will send responses in the given order It is possible to check on Method and Uri if set Responses can contain JSON-encoded body if ResponseBody is set
func MockHttpServerStatus ¶
MockHttpServerStatus creates a test server which will send empty responses with the given status code the responses which will be sent are in the given order
Types ¶
Click to show internal directories.
Click to hide internal directories.