webtest

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DoFunc func(req *http.Request) (*http.Response, error)

Functions

func MockResponse

func MockResponse(code int, body string, err error) (*http.Response, error)

Types

type MockClient

type MockClient struct {
}

func (MockClient) Do

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

func (MockClient) SetTimeout

func (m MockClient) SetTimeout(timeout time.Duration)

Jump to

Keyboard shortcuts

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