Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateServer ¶
func CreateServer(handler http.HandlerFunc) *httptest.Server
createServer is a helper function to create a fake server where http requsts will be rerouted for testing
func DefaultHandler ¶
func DefaultHandler(w http.ResponseWriter, req *http.Request)
func GetTestOptions ¶
func GetTestOptions(server *httptest.Server) []option.ClientOption
func SendResponse ¶
func SendResponse(w http.ResponseWriter, response interface{})
Types ¶
type TestInstance ¶
Click to show internal directories.
Click to hide internal directories.