mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mocks provides mock implementations for testing.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProvider

type MockProvider struct {
	// contains filtered or unexported fields
}

MockProvider is a mock of Provider interface.

func NewMockProvider

func NewMockProvider(ctrl *gomock.Controller) *MockProvider

NewMockProvider creates a new mock instance.

func (*MockProvider) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockProvider) ListSources

func (m *MockProvider) ListSources(ctx context.Context) ([]string, error)

ListSources mocks base method.

func (*MockProvider) Query

func (m *MockProvider) Query(ctx context.Context, opts log.QueryOpts) ([]log.Entry, error)

Query mocks base method.

func (*MockProvider) QueryUnit

func (m *MockProvider) QueryUnit(ctx context.Context, unit string, opts log.QueryOpts) ([]log.Entry, error)

QueryUnit mocks base method.

type MockProviderMockRecorder

type MockProviderMockRecorder struct {
	// contains filtered or unexported fields
}

MockProviderMockRecorder is the mock recorder for MockProvider.

func (*MockProviderMockRecorder) ListSources

func (mr *MockProviderMockRecorder) ListSources(ctx any) *gomock.Call

ListSources indicates an expected call of ListSources.

func (*MockProviderMockRecorder) Query

func (mr *MockProviderMockRecorder) Query(ctx, opts any) *gomock.Call

Query indicates an expected call of Query.

func (*MockProviderMockRecorder) QueryUnit

func (mr *MockProviderMockRecorder) QueryUnit(ctx, unit, opts any) *gomock.Call

QueryUnit indicates an expected call of QueryUnit.

Jump to

Keyboard shortcuts

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