Versions in this module Expand all Collapse all v0 v0.1.2 Jul 3, 2026 Changes in this version + type Handler struct + func Route(method, path string, response Response) Handler + type Request struct + Body []byte + Header http.Header + Method string + Path string + RawQuery string + func (r Request) JSONBody(t TestingT) map[string]any + type Response struct + Body []byte + Header http.Header + StatusCode int + func Bytes(statusCode int, contentType string, body []byte) Response + func Error(statusCode int, requestID, code, message string) Response + func JSON(statusCode int, body any) Response + func NoContent(statusCode int) Response + type Server struct + URL string + func NewServer(t TestingT, handlers ...Handler) *Server + func (s *Server) Client(token string, opts ...intercom.Option) (*intercom.Client, error) + func (s *Server) Request(t TestingT, index int) Request + func (s *Server) RequestCount() int + func (s *Server) Requests() []Request + type TestingT interface + Cleanup func(func()) + Errorf func(format string, args ...any) + Fatalf func(format string, args ...any) + Helper func()