mocks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoundTripper

type RoundTripper struct {
	mock.Mock
}

RoundTripper is an autogenerated mock type for the RoundTripper type

func NewRoundTripper

func NewRoundTripper(t interface {
	mock.TestingT
	Cleanup(func())
}) *RoundTripper

NewRoundTripper creates a new instance of RoundTripper. 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 (*RoundTripper) RoundTrip

func (_m *RoundTripper) RoundTrip(_a0 *http.Request) (*http.Response, error)

RoundTrip provides a mock function with given fields: _a0

type TestingT

type TestingT struct {
	mock.Mock
}

TestingT is an autogenerated mock type for the TestingT type

func NewTestingT

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

NewTestingT creates a new instance of TestingT. 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 (*TestingT) Errorf

func (_m *TestingT) Errorf(format string, args ...interface{})

Errorf provides a mock function with given fields: format, args

func (*TestingT) FailNow

func (_m *TestingT) FailNow()

FailNow provides a mock function with no fields

Jump to

Keyboard shortcuts

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