package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: May 24, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Exists(t *testing.T, rp *redis.Pool, key string, msgAndArgs ...interface{})
-
func FlushDB()
-
func Get(t *testing.T, rp *redis.Pool, key string, expected string, ...)
-
func HGetAll(t *testing.T, rp *redis.Pool, key string, expected map[string]string, ...)
-
func HLen(t *testing.T, rp *redis.Pool, key string, expected int, ...)
-
func Keys(t *testing.T, rp *redis.Pool, expected []string, msgAndArgs ...interface{})
-
func LLen(t *testing.T, rp *redis.Pool, key string, expected int, ...)
-
func NotExists(t *testing.T, rp *redis.Pool, key string, msgAndArgs ...interface{})
-
func SCard(t *testing.T, rp *redis.Pool, key string, expected int, ...)
-
func SIsMember(t *testing.T, rp *redis.Pool, key string, expected bool, ...)
-
func SMembers(t *testing.T, rp *redis.Pool, key string, expected []string, ...)
-
func TestDB() *redis.Pool
-
func ZCard(t *testing.T, rp *redis.Pool, key string, expected int, ...)
-
func ZRange(t *testing.T, rp *redis.Pool, key string, min, max int, expected []string, ...)
Exists asserts that the given key exists
FlushDB flushes the test database
Get asserts that the given key contains the given string value
HGetAll asserts the result of calling HGETALL on the given key
HLen asserts the result of calling HLEN on the given key
Keys asserts that only the given keys exist
LLen asserts the result of calling LLEN on the given key
NotExists asserts that the given key does not exist
SCard asserts the result of calling SCARD on the given key
SIsMember asserts the result of calling SISMEMBER on the given key
SMembers asserts the result of calling SMEMBERS on the given key
TestDB returns a redis pool to our test database
ZCard asserts the result of calling ZCARD on the given key
ZRange asserts the result of calling ZRANGE on the given key
Source Files
¶
Click to show internal directories.
Click to hide internal directories.