automock

package
v0.0.0-...-984dfe6 Latest Latest
Warning

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

Go to latest
Published: May 14, 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 HTTPRoundTripper

type HTTPRoundTripper struct {
	mock.Mock
}

HTTPRoundTripper is an autogenerated mock type for the HTTPRoundTripper type

func NewHTTPRoundTripper

func NewHTTPRoundTripper(t interface {
	mock.TestingT
	Cleanup(func())
}) *HTTPRoundTripper

NewHTTPRoundTripper creates a new instance of HTTPRoundTripper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*HTTPRoundTripper) Clone

Clone provides a mock function with given fields:

func (*HTTPRoundTripper) GetTransport

func (_m *HTTPRoundTripper) GetTransport() *nethttp.Transport

GetTransport provides a mock function with given fields:

func (*HTTPRoundTripper) RoundTrip

func (_m *HTTPRoundTripper) RoundTrip(_a0 *nethttp.Request) (*nethttp.Response, error)

RoundTrip provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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