Documentation
¶
Overview ¶
Package gemtest contains utilities for writing tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRequest ¶
Types ¶
type ResponseRecorder ¶
type ResponseRecorder struct {
Body bytes.Buffer
Code int
Meta string
// contains filtered or unexported fields
}
func NewRecorder ¶
func NewRecorder() *ResponseRecorder
func (*ResponseRecorder) WriteHeader ¶
func (r *ResponseRecorder) WriteHeader(statusCode int, meta string)
type Server ¶
type Server struct {
// Certificate is the temporary certificate.
Certificate tls.Certificate
// URL is the base URL to the server.
URL string
// contains filtered or unexported fields
}
Server is a temporary server suitable for writing tests.
Click to show internal directories.
Click to hide internal directories.