mocks

package
v0.5.51 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTP

type HTTP struct {
	mock.Mock
}

HTTP is an autogenerated mock type for the HTTP type

func NewHTTP

func NewHTTP(t mockConstructorTestingTNewHTTP) *HTTP

NewHTTP creates a new instance of HTTP. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*HTTP) Do

func (_m *HTTP) Do(r *http.Request) (*http.Response, error)

Do provides a mock function with given fields: r

func (*HTTP) HealthCheckHTTP

func (_m *HTTP) HealthCheckHTTP(uri string, method string, headers map[string][]string, body string, codes []int, timeout time.Duration) error

HealthCheckHTTP provides a mock function with given fields: uri, method, headers, body, codes, timeout

func (*HTTP) HealthCheckTCP

func (_m *HTTP) HealthCheckTCP(uri string, timeout time.Duration) error

HealthCheckTCP provides a mock function with given fields: uri, timeout

Jump to

Keyboard shortcuts

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