Documentation
¶
Index ¶
- func Config(name string) redisx.Config
- func NewClientWithFakeRedis(ctx context.Context, cfg redisx.Config, opts ...redisx.Option) (*redisx.Client, error)
- func NewFakeRedis() redisx.Provider
- func RequireGolden(t testing.TB, goldenPath string, actual []byte)
- func RequireNoError(t testing.TB, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientWithFakeRedis ¶
func NewClientWithFakeRedis(ctx context.Context, cfg redisx.Config, opts ...redisx.Option) (*redisx.Client, error)
NewClientWithFakeRedis constructs a redisx client backed by NewFakeRedis.
func NewFakeRedis ¶
NewFakeRedis returns an isolated in-memory Redis provider for tests. It does not read Redis environment variables and never opens a network connection, so generated tests cannot accidentally depend on a real Redis.
func RequireNoError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.