testutils

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPClientMock

type HTTPClientMock struct {
	DoFunc func(r *http.Request) (*http.Response, error)
}

HTTPClientMock is mock implementation of http client usable for testing

func (HTTPClientMock) Do

Do calls the DoFunc function set on the HTTPClientMock

Jump to

Keyboard shortcuts

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