coremock

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregator

type Aggregator struct {
	mock.Mock
}

Aggregator is an autogenerated mock type for the Aggregator type

func NewAggregator added in v0.5.4

func NewAggregator(t mockConstructorTestingTNewAggregator) *Aggregator

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

func (*Aggregator) Report

func (_m *Aggregator) Report(s core.Sample)

Report provides a mock function with given fields: s

func (*Aggregator) Run

func (_m *Aggregator) Run(ctx context.Context, deps core.AggregatorDeps) error

Run provides a mock function with given fields: ctx, deps

func (*Aggregator) String

func (_m *Aggregator) String() string

Implement Stringer, so when Aggregator is passed as arg to another mock call, it not read and data races not created.

type BorrowedSample added in v0.3.0

type BorrowedSample struct {
	mock.Mock
}

BorrowedSample is an autogenerated mock type for the BorrowedSample type

func NewBorrowedSample added in v0.5.4

func NewBorrowedSample(t mockConstructorTestingTNewBorrowedSample) *BorrowedSample

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

func (*BorrowedSample) Return added in v0.3.0

func (_m *BorrowedSample) Return()

Return provides a mock function with given fields:

type DataSink added in v0.3.0

type DataSink struct {
	mock.Mock
}

DataSink is an autogenerated mock type for the DataSink type

func NewDataSink added in v0.5.4

func NewDataSink(t mockConstructorTestingTNewDataSink) *DataSink

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

func (*DataSink) OpenSink added in v0.3.0

func (_m *DataSink) OpenSink() (io.WriteCloser, error)

OpenSink provides a mock function with given fields:

type DataSource added in v0.3.0

type DataSource struct {
	mock.Mock
}

DataSource is an autogenerated mock type for the DataSource type

func NewDataSource added in v0.5.4

func NewDataSource(t mockConstructorTestingTNewDataSource) *DataSource

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

func (*DataSource) OpenSource added in v0.3.0

func (_m *DataSource) OpenSource() (io.ReadCloser, error)

OpenSource provides a mock function with given fields:

type Gun

type Gun struct {
	mock.Mock
}

Gun is an autogenerated mock type for the Gun type

func NewGun added in v0.5.4

func NewGun(t mockConstructorTestingTNewGun) *Gun

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

func (*Gun) Bind

func (_m *Gun) Bind(aggr core.Aggregator, deps core.GunDeps) error

Bind provides a mock function with given fields: aggr, deps

func (*Gun) Shoot

func (_m *Gun) Shoot(ammo core.Ammo)

Shoot provides a mock function with given fields: ammo

type Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider added in v0.5.4

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) Acquire

func (_m *Provider) Acquire() (core.Ammo, bool)

Acquire provides a mock function with given fields:

func (*Provider) Release

func (_m *Provider) Release(ammo core.Ammo)

Release provides a mock function with given fields: ammo

func (*Provider) Run

func (_m *Provider) Run(ctx context.Context, deps core.ProviderDeps) error

Run provides a mock function with given fields: ctx, deps

type Schedule

type Schedule struct {
	mock.Mock
}

Schedule is an autogenerated mock type for the Schedule type

func NewSchedule added in v0.5.4

func NewSchedule(t mockConstructorTestingTNewSchedule) *Schedule

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

func (*Schedule) Left added in v0.3.0

func (_m *Schedule) Left() int

Left provides a mock function with given fields:

func (*Schedule) Next

func (_m *Schedule) Next() (time.Time, bool)

Next provides a mock function with given fields:

func (*Schedule) Start

func (_m *Schedule) Start(startAt time.Time)

Start provides a mock function with given fields: startAt

Jump to

Keyboard shortcuts

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