coremock

package
v0.5.3 Latest Latest
Warning

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

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

Documentation

Overview

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

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 (*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 (*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 (*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 (*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 (*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 (*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 (*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