testutil

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustDecodeBase64

func MustDecodeBase64(t *testing.T, encoded string) []byte

MustDecodeBase64 decodes the provided base64-encoded string.

Types

type RedisBundle

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

RedisBundle bundles together a miniredis instance and an associated Redis client.

func MustCreateRedisBundle

func MustCreateRedisBundle(t *testing.T) *RedisBundle

MustCreateRedisBundle returns a new RedisBundle.

func (*RedisBundle) Client

func (rb *RedisBundle) Client() *redis.Client

Client returns the Redis client.

func (*RedisBundle) Close

func (rb *RedisBundle) Close()

Close shuts down the Redis client and miniredis instance.

func (*RedisBundle) Flush

func (rb *RedisBundle) Flush()

Flush flushes all keys from miniredis.

Jump to

Keyboard shortcuts

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