testutil

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeClient added in v0.6.0

func NewFakeClient(t *testing.T) *http.Client

func NewTestClient

func NewTestClient(fn RoundTripFunc) *http.Client

Types

type RoundTripFunc added in v0.6.0

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

func (RoundTripFunc) RoundTrip added in v0.6.0

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

Jump to

Keyboard shortcuts

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