mocks

package
v0.0.0-...-fc07508 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 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 Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider

func NewProvider(t mockConstructorTestingTNewProvider) *Provider

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

func (*Provider) RecordApiCount

func (_m *Provider) RecordApiCount(code int, method string, path string)

RecordApiCount provides a mock function with given fields: code, method, path

func (*Provider) RecordApiLatency

func (_m *Provider) RecordApiLatency(code int, method string, path string, elapsed time.Duration)

RecordApiLatency provides a mock function with given fields: code, method, path, elapsed

func (*Provider) RecordCache

func (_m *Provider) RecordCache(key string, hit bool)

RecordCache provides a mock function with given fields: key, hit

Jump to

Keyboard shortcuts

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