fakedownloader

package
v0.0.0-...-919b350 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL