Documentation ¶
Index ¶
- func Exists(t *testing.T, rp *redis.Pool, key string, msgAndArgs ...any) bool
- func FlushDB()
- func Get(t *testing.T, rp *redis.Pool, key string, expected string, msgAndArgs ...any) bool
- func HGet(t *testing.T, rp *redis.Pool, key, field string, expected string, ...) bool
- func HGetAll(t *testing.T, rp *redis.Pool, key string, expected map[string]string, ...) bool
- func HLen(t *testing.T, rp *redis.Pool, key string, expected int, msgAndArgs ...any) bool
- func Keys(t *testing.T, rp *redis.Pool, pattern string, expected []string, ...) bool
- func LLen(t *testing.T, rp *redis.Pool, key string, expected int, msgAndArgs ...any) bool
- func NotExists(t *testing.T, rp *redis.Pool, key string, msgAndArgs ...any) bool
- func SCard(t *testing.T, rp *redis.Pool, key string, expected int, msgAndArgs ...any) bool
- func SIsMember(t *testing.T, rp *redis.Pool, key, member string, expected bool, ...) bool
- func SMembers(t *testing.T, rp *redis.Pool, key string, expected []string, msgAndArgs ...any) bool
- func TestDB() *redis.Pool
- func ZCard(t *testing.T, rp *redis.Pool, key string, expected int, msgAndArgs ...any) bool
- func ZRange(t *testing.T, rp *redis.Pool, key string, min, max int, expected []string, ...) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HGetAll ¶
func HGetAll(t *testing.T, rp *redis.Pool, key string, expected map[string]string, msgAndArgs ...any) bool
HGetAll asserts the result of calling HGETALL on the given key
func SIsMember ¶ added in v0.3.0
func SIsMember(t *testing.T, rp *redis.Pool, key, member string, expected bool, msgAndArgs ...any) bool
SIsMember asserts the result of calling SISMEMBER on the given key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.