mocks

package
v0.0.0-...-e00d976 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSearcher

type FileSearcher struct {
	mock.Mock
}

FileSearcher is an autogenerated mock type for the FileSearcher type

func NewFileSearcher

func NewFileSearcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *FileSearcher

NewFileSearcher creates a new instance of FileSearcher. 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 (*FileSearcher) SearchForFiles

func (_m *FileSearcher) SearchForFiles(ctx context.Context, start time.Time, end time.Time) []string

SearchForFiles provides a mock function with given fields: ctx, start, end

type Processor

type Processor struct {
	mock.Mock
}

Processor is an autogenerated mock type for the Processor type

func NewProcessor

func NewProcessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *Processor

NewProcessor creates a new instance of Processor. 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 (*Processor) HandlesFile

func (_m *Processor) HandlesFile(name string) bool

HandlesFile provides a mock function with given fields: name

func (*Processor) Process

func (_m *Processor) Process(ctx context.Context, filename string) error

Process provides a mock function with given fields: ctx, filename

type Source

type Source struct {
	mock.Mock
}

Source is an autogenerated mock type for the Source type

func NewSource

func NewSource(t interface {
	mock.TestingT
	Cleanup(func())
}) *Source

NewSource creates a new instance of Source. 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 (*Source) GetReader

func (_m *Source) GetReader(ctx context.Context, name string) (io.ReadCloser, error)

GetReader provides a mock function with given fields: ctx, name

func (*Source) HandlesFile

func (_m *Source) HandlesFile(name string) bool

HandlesFile provides a mock function with given fields: name

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Store

NewStore creates a new instance of Store. 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 (*Store) SetIngested

func (_m *Store) SetIngested(ctx context.Context, fileName string, ts time.Time) error

SetIngested provides a mock function with given fields: ctx, fileName, ts

func (*Store) WasIngested

func (_m *Store) WasIngested(ctx context.Context, fileName string) (bool, error)

WasIngested provides a mock function with given fields: ctx, fileName

Jump to

Keyboard shortcuts

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