testing

package
v0.10.3-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(key, fallback string) string

func InitTestConfig

func InitTestConfig()

func NewTestClient

func NewTestClient(fn RoundTripFunc) *httputil.HTTPClient

NewTestClient returns *httputil.HTTPClient with Transport replaced to avoid making real calls

func NewTestConfig

func NewTestConfig() []byte

Types

type RoundTripFunc

type RoundTripFunc func(req *http.Request) *http.Response

RoundTripFunc

func (RoundTripFunc) RoundTrip

func (f RoundTripFunc) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip

Jump to

Keyboard shortcuts

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