mocks

package
v0.0.0-...-3bbfe4c Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GetDoFunc fetches the mock client's `Do` func.
	GetDoFunc func(req *http.Request) (*http.Response, error)
)

Functions

func MockTrackPhotoDownload

func MockTrackPhotoDownload(file string) (*http.Response, error)

Types

type MockClient

type MockClient struct {
	DoFunc func(req *http.Request) (*http.Response, error)
}

MockClient is the mock client.

func (*MockClient) Do

func (m *MockClient) Do(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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