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: 5 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 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 MockObjectStoreManager

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

MockObjectStoreManager is a mock of ObjectStoreManager interface.

func NewMockObjectStoreManager

func NewMockObjectStoreManager(ctrl *gomock.Controller) *MockObjectStoreManager

NewMockObjectStoreManager creates a new mock instance.

func NewPlainMockObjectStoreManager

func NewPlainMockObjectStoreManager(
	ctrl *gomock.Controller,
) *MockObjectStoreManager

NewPlainMockObjectStoreManager creates a Mock without defaults.

func (*MockObjectStoreManager) Delete

func (m *MockObjectStoreManager) Delete(ctx context.Context, name string) error

Delete mocks base method.

func (*MockObjectStoreManager) EXPECT

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

func (*MockObjectStoreManager) GetBytes

func (m *MockObjectStoreManager) GetBytes(ctx context.Context, name string, opts ...jetstream.GetObjectOpt) ([]byte, error)

GetBytes mocks base method.

func (*MockObjectStoreManager) GetInfo

GetInfo mocks base method.

func (*MockObjectStoreManager) List

List mocks base method.

func (*MockObjectStoreManager) Put

Put mocks base method.

func (*MockObjectStoreManager) PutBytes

func (m *MockObjectStoreManager) PutBytes(ctx context.Context, name string, data []byte) (*jetstream.ObjectInfo, error)

PutBytes mocks base method.

type MockObjectStoreManagerMockRecorder

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

MockObjectStoreManagerMockRecorder is the mock recorder for MockObjectStoreManager.

func (*MockObjectStoreManagerMockRecorder) Delete

func (mr *MockObjectStoreManagerMockRecorder) Delete(ctx, name any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockObjectStoreManagerMockRecorder) GetBytes

func (mr *MockObjectStoreManagerMockRecorder) GetBytes(ctx, name any, opts ...any) *gomock.Call

GetBytes indicates an expected call of GetBytes.

func (*MockObjectStoreManagerMockRecorder) GetInfo

func (mr *MockObjectStoreManagerMockRecorder) GetInfo(ctx, name any, opts ...any) *gomock.Call

GetInfo indicates an expected call of GetInfo.

func (*MockObjectStoreManagerMockRecorder) List

func (mr *MockObjectStoreManagerMockRecorder) List(ctx any, opts ...any) *gomock.Call

List indicates an expected call of List.

func (*MockObjectStoreManagerMockRecorder) Put

func (mr *MockObjectStoreManagerMockRecorder) Put(ctx, meta, reader any) *gomock.Call

Put indicates an expected call of Put.

func (*MockObjectStoreManagerMockRecorder) PutBytes

func (mr *MockObjectStoreManagerMockRecorder) PutBytes(ctx, name, data any) *gomock.Call

PutBytes indicates an expected call of PutBytes.

type MockStateKeyValue

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

MockStateKeyValue is a mock of StateKeyValue interface.

func NewMockStateKeyValue

func NewMockStateKeyValue(ctrl *gomock.Controller) *MockStateKeyValue

NewMockStateKeyValue creates a new mock instance.

func (*MockStateKeyValue) EXPECT

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

func (*MockStateKeyValue) Get

Get mocks base method.

func (*MockStateKeyValue) Keys

func (m *MockStateKeyValue) Keys(ctx context.Context, opts ...jetstream.WatchOpt) ([]string, error)

Keys mocks base method.

type MockStateKeyValueMockRecorder

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

MockStateKeyValueMockRecorder is the mock recorder for MockStateKeyValue.

func (*MockStateKeyValueMockRecorder) Get

func (mr *MockStateKeyValueMockRecorder) Get(ctx, key any) *gomock.Call

Get indicates an expected call of Get.

func (*MockStateKeyValueMockRecorder) Keys

func (mr *MockStateKeyValueMockRecorder) Keys(ctx any, opts ...any) *gomock.Call

Keys indicates an expected call of Keys.

Jump to

Keyboard shortcuts

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