mocks

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 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 Counter

type Counter struct {
	mock.Mock
}

Counter is an autogenerated mock type for the Counter type

func NewCounter

func NewCounter(t mockConstructorTestingTNewCounter) *Counter

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

func (*Counter) Set

func (_m *Counter) Set(_a0 float64)

Set provides a mock function with given fields: _a0

type CounterBuilder

type CounterBuilder struct {
	mock.Mock
}

CounterBuilder is an autogenerated mock type for the CounterBuilder type

func NewCounterBuilder

func NewCounterBuilder(t mockConstructorTestingTNewCounterBuilder) *CounterBuilder

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

func (*CounterBuilder) Build

func (_m *CounterBuilder) Build() metrics.Counter

Build provides a mock function with given fields:

func (*CounterBuilder) With

func (_m *CounterBuilder) With(_a0 ...string) metrics.CounterBuilder

With provides a mock function with given fields: _a0

type Histo

type Histo struct {
	mock.Mock
}

Histo is an autogenerated mock type for the Histo type

func NewHisto

func NewHisto(t mockConstructorTestingTNewHisto) *Histo

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

func (*Histo) Update

func (_m *Histo) Update(_a0 float64)

Update provides a mock function with given fields: _a0

type HistoBuilder

type HistoBuilder struct {
	mock.Mock
}

HistoBuilder is an autogenerated mock type for the HistoBuilder type

func NewHistoBuilder

func NewHistoBuilder(t mockConstructorTestingTNewHistoBuilder) *HistoBuilder

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

func (*HistoBuilder) Build

func (_m *HistoBuilder) Build() metrics.Histo

Build provides a mock function with given fields:

func (*HistoBuilder) With

func (_m *HistoBuilder) With(_a0 ...string) metrics.HistoBuilder

With provides a mock function with given fields: _a0

type Increment

type Increment struct {
	mock.Mock
}

Increment is an autogenerated mock type for the Increment type

func NewIncrement

func NewIncrement(t mockConstructorTestingTNewIncrement) *Increment

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

func (*Increment) Add

func (_m *Increment) Add(_a0 float64)

Add provides a mock function with given fields: _a0

func (*Increment) Inc

func (_m *Increment) Inc()

Inc provides a mock function with given fields:

type IncrementBuilder

type IncrementBuilder struct {
	mock.Mock
}

IncrementBuilder is an autogenerated mock type for the IncrementBuilder type

func NewIncrementBuilder

func NewIncrementBuilder(t mockConstructorTestingTNewIncrementBuilder) *IncrementBuilder

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

func (*IncrementBuilder) Build

func (_m *IncrementBuilder) Build() metrics.Increment

Build provides a mock function with given fields:

func (*IncrementBuilder) With

With 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