Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a simple HTTP server for serving test fixtures.
func Start ¶
Start creates and starts an HTTP server serving from testdata/static. Port 0 means the OS will choose an available port. Returns a Server handle for later cleanup.
func (*Server) URL ¶
URL returns the base URL for the server (e.g., "http://localhost:8080").
Directories
¶
| Path | Synopsis |
|---|---|
|
Package fixture provides a declarative, in-process HTTP test server for per-test scenarios that exercise HTTP-level behaviour (status codes, redirects, slow responses, charset declarations, header echoes, etc.).
|
Package fixture provides a declarative, in-process HTTP test server for per-test scenarios that exercise HTTP-level behaviour (status codes, redirects, slow responses, charset declarations, header echoes, etc.). |
Click to show internal directories.
Click to hide internal directories.