mocks

package
v0.0.0-...-0807a26 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Throttle

type Throttle struct {
	mock.Mock
}

Throttle is an autogenerated mock type for the Throttle type

func NewThrottle

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

NewThrottle creates a new instance of Throttle. 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 (*Throttle) Get

func (_m *Throttle) Get(ctx context.Context, roller string) (bool, error)

Get provides a mock function with given fields: ctx, roller

func (*Throttle) Reset

func (_m *Throttle) Reset(ctx context.Context, roller string) error

Reset provides a mock function with given fields: ctx, roller

func (*Throttle) Unthrottle

func (_m *Throttle) Unthrottle(ctx context.Context, roller string) error

Unthrottle provides a mock function with given fields: ctx, roller

Jump to

Keyboard shortcuts

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