(t *testing.T)
| 230 | } |
| 231 | |
| 232 | func TestMemcachedClient_Increment(t *testing.T) { |
| 233 | client, _, err := setupDefaultMemcachedClient() |
| 234 | require.NoError(t, err) |
| 235 | |
| 236 | key := "foo" |
| 237 | initialValue := []byte("2") |
| 238 | |
| 239 | client.SetAsync(key, initialValue, 10*time.Second) |
| 240 | require.NoError(t, client.wait()) |
| 241 | |
| 242 | incrementedValue, err := client.Increment(context.Background(), key, 1) |
| 243 | require.NoError(t, err) |
| 244 | require.Equal(t, uint64(3), incrementedValue) |
| 245 | } |
| 246 | |
| 247 | func TestMemcachedClient_Decrement(t *testing.T) { |
| 248 | client, _, err := setupDefaultMemcachedClient() |
nothing calls this directly
no test coverage detected