Documentation
¶
Overview ¶
Package testing provides mock implementations for testing
Index ¶
- type MockKVS
- func (m *MockKVS) Clear()
- func (m *MockKVS) Delete(key string)
- func (m *MockKVS) GetAny(ctx context.Context, key string, val any) error
- func (m *MockKVS) GetOrDefaultString(ctx context.Context, key, def string) string
- func (m *MockKVS) GetString(ctx context.Context, key string) (string, error)
- func (m *MockKVS) Keys() []string
- func (m *MockKVS) SetAny(ctx context.Context, key string, val any) error
- func (m *MockKVS) SetString(ctx context.Context, key, val string) error
- func (m *MockKVS) Size() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockKVS ¶
type MockKVS struct {
// contains filtered or unexported fields
}
MockKVS is a simple in-memory key-value store for testing
func (*MockKVS) GetOrDefaultString ¶
GetOrDefaultString retrieves a string value or returns default
Click to show internal directories.
Click to hide internal directories.