Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient() *Client
NewClient returns a mock (fake) client for testing. The fixtures are not automatically loaded into the cache. Individual fixtures can be loaded using the WithFixtureOrDie method and all fixtures in a directory can be loaded using LoadAllOrDie.
func (*Client) LoadAllOrDie ¶
LoadAllOrDie loads all fixtures in the directory into the cache.
func (*Client) WithFixtureOrDie ¶
WithFixtureOrDie loads a single fixture into the cache. The fixture must be in a recognizable format for the universal deserializer.
Click to show internal directories.
Click to hide internal directories.