Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TestAPIWithRealHTTPServer is a flag to switch the use of httptest.server. // If this flag is true, all tests will be executed with a real HTTP server. // If it is false, a server will not be created and tests are done by directly // calling ServeHTTP of a handler. TestAPIWithRealHTTPServer = false )
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a temporary HTTP server for test.
func (*Server) HTTPClient ¶
HTTPClient returns the HTTP client to send requests to the server.
Click to show internal directories.
Click to hide internal directories.