SetEqualErr verify that the return value of the set operation is correct
(t *testing.T, errValue string, args ...interface{})
| 43 | |
| 44 | //SetEqualErr verify that the return value of the set operation is correct |
| 45 | func (es *ExampleString) SetEqualErr(t *testing.T, errValue string, args ...interface{}) { |
| 46 | _, err := es.conn.Do("set", args...) |
| 47 | assert.EqualError(t, err, errValue) |
| 48 | } |
| 49 | |
| 50 | //GetEqualErr verify that the return value of the set operation is correct |
| 51 | func (es *ExampleString) GetEqualErr(t *testing.T, errValue string, args ...interface{}) { |