package
11.1.0+incompatible
Repository: https://github.com/fastly/cli.git
Documentation: pkg.go.dev

# Functions

APIClient takes a mock.API and returns an app.ClientFactory that uses that mock, ignoring the token and endpoint.
HTMLClient returns a mock HTTP Client that returns a stubbed response or error.
NewHTTPResponse fills in the boilerplate needed to create a minimal *http.Response.
NewNonExistentConfigFile is a test helper function which constructs a new non-existent config file interface.

# Structs

API is a mock implementation of api.Interface that's used for testing.
AssetVersioner mocks the github.AssetVersioner interface.
ConfigFile is a mock implementation of the toml.ReadWriter interface that's used for testing.
HTTPClient is used to mock fastly.Client requests.