helpers

package
v0.0.0-...-d411e7a Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupMirrorResponse

func SetupMirrorResponse(client *MockClient)

func SetupServerError

func SetupServerError(client *MockClient)

func SetupSuccessResponse

func SetupSuccessResponse(client *MockClient, response_str string)

Types

type MockClient

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

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