Module gotham::test [] [src]

Contains helpers for Gotham applications to use during testing.

TestServer::new(_) is the most useful entry point.

Structs

TestConnect

TestConnect represents the connection between a test client and the TestServer instance that created it. This type should never be used directly.

TestServer

The TestServer type, which is used as a harness when writing test cases for Hyper services (which Gotham's Router is). An instance of TestServer is run single-threaded and asynchronous, and only accessible by a client returned from the TestServer.

Enums

TestRequestError

The TestRequestError type represents all error states that can result from evaluating a response future. See TestServer::run_request for usage.