mocks

package
v1.59.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCollector

type MockCollector struct {
	mock.Mock
}

MockCollector is an autogenerated mock type for the Collector type

func NewMockCollector

func NewMockCollector(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCollector

NewMockCollector creates a new instance of MockCollector. 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 (*MockCollector) GetLoggingOpts

func (_m *MockCollector) GetLoggingOpts() []zap.Option

GetLoggingOpts provides a mock function with given fields:

func (*MockCollector) Restart

func (_m *MockCollector) Restart(_a0 context.Context) error

Restart provides a mock function with given fields: _a0

func (*MockCollector) Run

func (_m *MockCollector) Run(_a0 context.Context) error

Run provides a mock function with given fields: _a0

func (*MockCollector) SetLoggingOpts

func (_m *MockCollector) SetLoggingOpts(_a0 []zap.Option)

SetLoggingOpts provides a mock function with given fields: _a0

func (*MockCollector) Status

func (_m *MockCollector) Status() <-chan *collector.Status

Status provides a mock function with given fields:

func (*MockCollector) Stop

func (_m *MockCollector) Stop(_a0 context.Context)

Stop 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