GetEqual verify that the return value of the get operation is correct
(t *testing.T, key string)
| 36 | |
| 37 | //GetEqual verify that the return value of the get operation is correct |
| 38 | func (es *ExampleString) GetEqual(t *testing.T, key string) { |
| 39 | data, err := redis.Bytes(es.conn.Do("GET", key)) |
| 40 | assert.Equal(t, es.values[key], string(data)) |
| 41 | assert.NoError(t, err) |
| 42 | } |
| 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{}) { |