package
0.10.14
Repository: https://github.com/gschool/glearn-cli.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

MockBody creates a mock body that can be added to a response.
MockResponse creates a mock client that will return the given response on the body.
MockResponses creates a mock client with a series of canned responses.

# Structs

ClosingBuffer embeds a bytes.Buffer, giving it a Read method required for a Response Body ReadCloser body.
MockClient is responsible for stubbing requests in tests if the Response field is set, the mock client will respond to each request with the Response If Responses is set, the mock client will match subsequent requests to subsequent responses, moving along the array of Responses once for each request.

# Interfaces

Client is used with http.Client and MockClient to allow mocking of services.