Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeDownloader ¶
type FakeDownloader struct {
// contains filtered or unexported fields
}
FakeDownloader is a mock Downloader.
func NewFakeDownloader ¶
func NewFakeDownloader(rc io.ReadCloser, err error) *FakeDownloader
NewFakeDownloader returns a test double downloader. Parameters passed will be returned by the Download function.
func (FakeDownloader) Download ¶
func (f FakeDownloader) Download(ctx context.Context, url string) (io.ReadCloser, error)
Download returns the parameters given to constructor.
Click to show internal directories.
Click to hide internal directories.