5 // NewCmdResult returns a Cmd initialised with val and err for testing
6 func NewCmdResult(val interface{}, err error) *Cmd {
13 // NewSliceResult returns a SliceCmd initialised with val and err for testing
14 func NewSliceResult(val []interface{}, err error) *SliceCmd {
21 // NewStatusResult returns a StatusCmd initialised with val and err for testing
22 func NewStatusResult(val string, err error) *StatusCmd {
29 // NewIntResult returns an IntCmd initialised with val and err for testing
30 func NewIntResult(val int64, err error) *IntCmd {
37 // NewDurationResult returns a DurationCmd initialised with val and err for testing
38 func NewDurationResult(val time.Duration, err error) *DurationCmd {
45 // NewBoolResult returns a BoolCmd initialised with val and err for testing
46 func NewBoolResult(val bool, err error) *BoolCmd {
53 // NewStringResult returns a StringCmd initialised with val and err for testing
54 func NewStringResult(val string, err error) *StringCmd {
61 // NewFloatResult returns a FloatCmd initialised with val and err for testing
62 func NewFloatResult(val float64, err error) *FloatCmd {
69 // NewStringSliceResult returns a StringSliceCmd initialised with val and err for testing
70 func NewStringSliceResult(val []string, err error) *StringSliceCmd {
71 var cmd StringSliceCmd
77 // NewBoolSliceResult returns a BoolSliceCmd initialised with val and err for testing
78 func NewBoolSliceResult(val []bool, err error) *BoolSliceCmd {
85 // NewStringStringMapResult returns a StringStringMapCmd initialised with val and err for testing
86 func NewStringStringMapResult(val map[string]string, err error) *StringStringMapCmd {
87 var cmd StringStringMapCmd
93 // NewStringIntMapCmdResult returns a StringIntMapCmd initialised with val and err for testing
94 func NewStringIntMapCmdResult(val map[string]int64, err error) *StringIntMapCmd {
95 var cmd StringIntMapCmd
101 // NewZSliceCmdResult returns a ZSliceCmd initialised with val and err for testing
102 func NewZSliceCmdResult(val []Z, err error) *ZSliceCmd {
109 // NewScanCmdResult returns a ScanCmd initialised with val and err for testing
110 func NewScanCmdResult(keys []string, cursor uint64, err error) *ScanCmd {
118 // NewClusterSlotsCmdResult returns a ClusterSlotsCmd initialised with val and err for testing
119 func NewClusterSlotsCmdResult(val []ClusterSlot, err error) *ClusterSlotsCmd {
120 var cmd ClusterSlotsCmd
126 // NewGeoLocationCmdResult returns a GeoLocationCmd initialised with val and err for testing
127 func NewGeoLocationCmdResult(val []GeoLocation, err error) *GeoLocationCmd {
128 var cmd GeoLocationCmd
134 // NewCommandsInfoCmdResult returns a CommandsInfoCmd initialised with val and err for testing
135 func NewCommandsInfoCmdResult(val map[string]*CommandInfo, err error) *CommandsInfoCmd {
136 var cmd CommandsInfoCmd