Documentation
¶
Overview ¶
Package test contains functions used for testing in redistypes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEqual ¶
AssertEqual checks if got, returned from redis, is equal to want, a string or an int. If not equal it will cause the test to fail.
func IntsToInterfaceSlice ¶
func IntsToInterfaceSlice(ints ...int) []interface{}
IntsToInterfaceSlice converts ints to a slice of interfaces containing the ints.
func RandomKey ¶
func RandomKey() string
RandomKey returns a key of the form test:<number>, where <number> is a random number. It is used for testing Redis data types using random keys.
func StringsToInterfaceSlice ¶
func StringsToInterfaceSlice(strings ...string) []interface{}
StringsToInterfaceSlice converts strings to a slice of interfaces containing the strings.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.