mocks

package
v1.51.0 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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	mock.Mock
}

MockClient is an autogenerated mock type for the Client type

func NewMockClient

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

NewMockClient creates a new instance of MockClient. 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 (*MockClient) Do

func (_m *MockClient) Do(req *http.Request) (*http.Response, error)

Do provides a mock function with given fields: req

type MockReporter

type MockReporter struct {
	mock.Mock
}

MockReporter is an autogenerated mock type for the Reporter type

func NewMockReporter

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

NewMockReporter creates a new instance of MockReporter. 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 (*MockReporter) Kind

func (_m *MockReporter) Kind() string

Kind provides a mock function with given fields:

func (*MockReporter) Report

func (_m *MockReporter) Report(config interface{}) error

Report provides a mock function with given fields: config

Jump to

Keyboard shortcuts

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