mock

package
v0.38.0-preview.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataProvider

type DataProvider struct {
	mock.Mock
}

DataProvider is an autogenerated mock type for the DataProvider type

func NewDataProvider

func NewDataProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *DataProvider

NewDataProvider creates a new instance of DataProvider. 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 (*DataProvider) Close

func (_m *DataProvider) Close() error

Close provides a mock function with given fields:

func (*DataProvider) ID

func (_m *DataProvider) ID() uuid.UUID

ID provides a mock function with given fields:

func (*DataProvider) Run

func (_m *DataProvider) Run() error

Run provides a mock function with given fields:

func (*DataProvider) Topic

func (_m *DataProvider) Topic() string

Topic provides a mock function with given fields:

type DataProviderFactory

type DataProviderFactory struct {
	mock.Mock
}

DataProviderFactory is an autogenerated mock type for the DataProviderFactory type

func NewDataProviderFactory

func NewDataProviderFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *DataProviderFactory

NewDataProviderFactory creates a new instance of DataProviderFactory. 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 (*DataProviderFactory) NewDataProvider

func (_m *DataProviderFactory) NewDataProvider(ctx context.Context, topic string, arguments models.Arguments, ch chan<- interface{}) (data_providers.DataProvider, error)

NewDataProvider provides a mock function with given fields: ctx, topic, arguments, ch

Jump to

Keyboard shortcuts

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