mocks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 4 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 MockVault

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

MockVault is a mock of Vault interface.

func NewMockVault

func NewMockVault(ctrl *gomock.Controller) *MockVault

NewMockVault creates a new mock instance.

func (*MockVault) Delete

func (m *MockVault) Delete(ctx context.Context, key string) error

Delete mocks base method.

func (*MockVault) EXPECT

func (m *MockVault) EXPECT() *MockVaultMockRecorder

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

func (*MockVault) Get

func (m *MockVault) Get(ctx context.Context, key string) ([]byte, vault.Meta, error)

Get mocks base method.

func (*MockVault) List

func (m *MockVault) List(ctx context.Context) ([]vault.Meta, error)

List mocks base method.

func (*MockVault) Name

func (m *MockVault) Name() string

Name mocks base method.

func (*MockVault) Put

func (m *MockVault) Put(ctx context.Context, key string, value []byte) (vault.Meta, error)

Put mocks base method.

type MockVaultMockRecorder

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

MockVaultMockRecorder is the mock recorder for MockVault.

func (*MockVaultMockRecorder) Delete

func (mr *MockVaultMockRecorder) Delete(ctx, key any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockVaultMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockVaultMockRecorder) List

func (mr *MockVaultMockRecorder) List(ctx any) *gomock.Call

List indicates an expected call of List.

func (*MockVaultMockRecorder) Name

func (mr *MockVaultMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockVaultMockRecorder) Put

func (mr *MockVaultMockRecorder) Put(ctx, key, value any) *gomock.Call

Put indicates an expected call of Put.

Jump to

Keyboard shortcuts

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