Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Request ¶
Request is one recorded call, captured before dispatch so tests can assert on exactly what the CLI sent.
type Server ¶
Server is a canned-response Management API double. Unrouted paths return a FastAPI-style 404 ({"detail": "Not Found"}), matching the real backend.
func (*Server) HandleFunc ¶
func (s *Server) HandleFunc(method, path string, h http.HandlerFunc)
HandleFunc registers a custom handler for METHOD path.
func (*Server) RequestsTo ¶
RequestsTo returns the recorded requests matching METHOD path.
Click to show internal directories.
Click to hide internal directories.