Documentation
¶
Overview ¶
Package mocks provides mock implementations for testing.
Package mocks is a generated GoMock package.
Index ¶
- type MockVault
- func (m *MockVault) Delete(ctx context.Context, key string) error
- func (m *MockVault) EXPECT() *MockVaultMockRecorder
- func (m *MockVault) Get(ctx context.Context, key string) ([]byte, vault.Meta, error)
- func (m *MockVault) List(ctx context.Context) ([]vault.Meta, error)
- func (m *MockVault) Name() string
- func (m *MockVault) Put(ctx context.Context, key string, value []byte) (vault.Meta, error)
- type MockVaultMockRecorder
- func (mr *MockVaultMockRecorder) Delete(ctx, key any) *gomock.Call
- func (mr *MockVaultMockRecorder) Get(ctx, key any) *gomock.Call
- func (mr *MockVaultMockRecorder) List(ctx any) *gomock.Call
- func (mr *MockVaultMockRecorder) Name() *gomock.Call
- func (mr *MockVaultMockRecorder) Put(ctx, key, value any) *gomock.Call
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) EXPECT ¶
func (m *MockVault) EXPECT() *MockVaultMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.