Documentation ¶
Overview ¶
Utility functions for testing net2/http2
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureListen ¶
func EnsureListen(c *C, hostport string)
This checks to ensure a server is running on the specified host port. DO NOT USE IN PRODUCTION.
func RandomListenPort ¶
func RandomListenPort(c *C) int
This returns a random port for unit testing. DO NOT USE IN PRODUCTION.
Types ¶
type TestServer ¶
func SetupTestServer ¶
func SetupTestServer(ssl bool) (*TestServer, string)
Create a dummy server for unittesting. DO NOT USE IN PRODUCTION.
Click to show internal directories.
Click to hide internal directories.