Documentation ¶
Index ¶
- func Exists(t *testing.T, rc redis.Conn, key string, msgAndArgs ...any) bool
- func FlushDB()
- func Get(t *testing.T, rc redis.Conn, key string, expected string, msgAndArgs ...any) bool
- func HGet(t *testing.T, rc redis.Conn, key, field string, expected string, ...) bool
- func HGetAll(t *testing.T, rc redis.Conn, key string, expected map[string]string, ...) bool
- func HLen(t *testing.T, rc redis.Conn, key string, expected int, msgAndArgs ...any) bool
- func Keys(t *testing.T, rc redis.Conn, pattern string, expected []string, ...) bool
- func LGetAll(t *testing.T, rc redis.Conn, key string, expected []string, msgAndArgs ...any) bool
- func LLen(t *testing.T, rc redis.Conn, key string, expected int, msgAndArgs ...any) bool
- func LRange(t *testing.T, rc redis.Conn, key string, start, stop int, expected []string, ...) bool
- func NotExists(t *testing.T, rc redis.Conn, key string, msgAndArgs ...any) bool
- func SCard(t *testing.T, rc redis.Conn, key string, expected int, msgAndArgs ...any) bool
- func SIsMember(t *testing.T, rc redis.Conn, key, member string, msgAndArgs ...any) bool
- func SIsNotMember(t *testing.T, rc redis.Conn, key, member string, msgAndArgs ...any) bool
- func SMembers(t *testing.T, rc redis.Conn, key string, expected []string, msgAndArgs ...any) bool
- func TestDB() *redis.Pool
- func ZCard(t *testing.T, rc redis.Conn, key string, expected int, msgAndArgs ...any) bool
- func ZGetAll(t *testing.T, rc redis.Conn, key string, expected map[string]float64, ...) bool
- func ZRange(t *testing.T, rc redis.Conn, key string, start, stop int, expected []string, ...) bool
- func ZScore(t *testing.T, rc redis.Conn, key, member string, expected float64, ...) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HGetAll ¶
func HGetAll(t *testing.T, rc redis.Conn, key string, expected map[string]string, msgAndArgs ...any) bool
HGetAll asserts the result of calling HGETALL on the given key
func LGetAll ¶ added in v0.7.0
LGetAll asserts the result of calling LRANGE <?> 0 -1 on the given key
func LRange ¶ added in v0.6.2
func LRange(t *testing.T, rc redis.Conn, key string, start, stop int, expected []string, msgAndArgs ...any) bool
LRange asserts the result of calling LRANGE on the given key
func SIsMember ¶ added in v0.3.0
SIsMember asserts the result that calling SISMEMBER on the given key is true
func SIsNotMember ¶ added in v0.7.0
SIsNotMember asserts the result of calling SISMEMBER on the given key is false
func ZGetAll ¶ added in v0.7.0
func ZGetAll(t *testing.T, rc redis.Conn, key string, expected map[string]float64, msgAndArgs ...any) bool
ZGetAll asserts the result of calling ZRANGE <?> 0 -1 WITHSCORES on the given key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.