(t *testing.T)
| 245 | } |
| 246 | |
| 247 | func TestMemcachedClient_Decrement(t *testing.T) { |
| 248 | client, _, err := setupDefaultMemcachedClient() |
| 249 | require.NoError(t, err) |
| 250 | |
| 251 | key := "foo" |
| 252 | initialValue := []byte("2") |
| 253 | |
| 254 | client.SetAsync(key, initialValue, 10*time.Second) |
| 255 | require.NoError(t, client.wait()) |
| 256 | |
| 257 | incrementedValue, err := client.Decrement(context.Background(), key, 1) |
| 258 | require.NoError(t, err) |
| 259 | require.Equal(t, uint64(1), incrementedValue) |
| 260 | } |
| 261 | |
| 262 | func TestMemcachedClient_Touch(t *testing.T) { |
| 263 | client, backend, err := setupDefaultMemcachedClient() |
nothing calls this directly
no test coverage detected