mocks

package
v0.4.49 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-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 HttpTransportMockFailure

type HttpTransportMockFailure struct {
}

func (*HttpTransportMockFailure) RoundTrip

func (h *HttpTransportMockFailure) RoundTrip(_ *http.Request) (*http.Response, error)

type HttpTransportMockSuccess

type HttpTransportMockSuccess struct {
}

func (*HttpTransportMockSuccess) RoundTrip

func (h *HttpTransportMockSuccess) RoundTrip(_ *http.Request) (*http.Response, error)

type HttpTransportTimeoutFailure

type HttpTransportTimeoutFailure struct {
	CallCount int
}

func (*HttpTransportTimeoutFailure) RoundTrip

func (h *HttpTransportTimeoutFailure) 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