Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Finish ¶
func Finish()
Finish deactivates HTTP mocking and clears the registered URLs, undoing Start.
func LoadFile ¶
LoadFile reads the named file from the test data directory and returns its contents, panicking on error.
func Start ¶
func Start(set TestDataset)
Start activates HTTP mocking and registers the responders for the given test dataset. It panics if two datasets register the same URL.
Types ¶
type TestDataset ¶
type TestDataset int
const ( Bootstrap TestDataset = iota BootstrapExperimental BootstrapMalformed BootstrapComplex BootstrapHTTPError Responses )
Click to show internal directories.
Click to hide internal directories.