Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FailHandler ¶
FailHandler is a function that will be called when something unexpected happens in the test server.
type Server ¶
type Server interface { // Close shuts down the server and blocks until all outstanding // requests on this server have completed. Close() // Get retrieves the transaction registered for a given // method/path combination. May return nil Get(method, path string) *Transaction // Set registers a transaction for a given // method/path combination. May be set to nil, // however, a request to that method/path will cause the server // to call the Fail handler Set(method, path string, transaction *Transaction) // URL returns the url the test server is running at URL() string }
Server has transactions and can be closed
Click to show internal directories.
Click to hide internal directories.