mocks

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

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 MockErrorHandler

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

MockErrorHandler is a mock of ErrorHandler interface.

func NewMockErrorHandler

func NewMockErrorHandler(ctrl *gomock.Controller) *MockErrorHandler

NewMockErrorHandler creates a new mock instance.

func (*MockErrorHandler) EXPECT

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

func (*MockErrorHandler) OnError

func (m *MockErrorHandler) OnError(err error)

OnError mocks base method.

type MockErrorHandlerMockRecorder

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

MockErrorHandlerMockRecorder is the mock recorder for MockErrorHandler.

func (*MockErrorHandlerMockRecorder) OnError

func (mr *MockErrorHandlerMockRecorder) OnError(err any) *gomock.Call

OnError indicates an expected call of OnError.

type MockFlusher

type MockFlusher[T any] struct {
	// contains filtered or unexported fields
}

MockFlusher is a mock of Flusher interface.

func NewMockFlusher

func NewMockFlusher[T any](ctrl *gomock.Controller) *MockFlusher[T]

NewMockFlusher creates a new mock instance.

func (*MockFlusher[T]) EXPECT

func (m *MockFlusher[T]) EXPECT() *MockFlusherMockRecorder[T]

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

func (*MockFlusher[T]) Flush

func (m *MockFlusher[T]) Flush(ctx context.Context, entries []T) error

Flush mocks base method.

type MockFlusherMockRecorder

type MockFlusherMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockFlusherMockRecorder is the mock recorder for MockFlusher.

func (*MockFlusherMockRecorder[T]) Flush

func (mr *MockFlusherMockRecorder[T]) Flush(ctx, entries any) *gomock.Call

Flush indicates an expected call of Flush.

type MockStore

type MockStore[T any] struct {
	// contains filtered or unexported fields
}

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore[T any](ctrl *gomock.Controller) *MockStore[T]

NewMockStore creates a new mock instance.

func (*MockStore[T]) EXPECT

func (m *MockStore[T]) EXPECT() *MockStoreMockRecorder[T]

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

func (*MockStore[T]) Run

func (m *MockStore[T]) Run(ctx context.Context)

Run mocks base method.

func (*MockStore[T]) Write

func (m *MockStore[T]) Write(entries ...T)

Write mocks base method.

type MockStoreMockRecorder

type MockStoreMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder[T]) Run

func (mr *MockStoreMockRecorder[T]) Run(ctx any) *gomock.Call

Run indicates an expected call of Run.

func (*MockStoreMockRecorder[T]) Write

func (mr *MockStoreMockRecorder[T]) Write(entries ...any) *gomock.Call

Write indicates an expected call of Write.

Jump to

Keyboard shortcuts

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