Documentation
¶
Overview ¶
Package httptest provides utilities for HTTP testing. It includes helpers for the VCR library we use.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransportRecorder ¶
func NewTransportRecorder( t testing.TB, name string, opts TransportRecorderOptions, ) *recorder.Recorder
NewTransportRecorder builds a new HTTP request recorder/replayer that will write fixtures to testdata/fixtures/<name>.
The returned Recorder will be in recording mode if the -update flag is set, and in replay mode otherwise.
Types ¶
Click to show internal directories.
Click to hide internal directories.