(t *testing.T)
| 420 | } |
| 421 | |
| 422 | func TestStringDecr(t *testing.T) { |
| 423 | args := make([]string, 1) |
| 424 | args[0] = "decr" |
| 425 | ctx := ContextTest("decr", args...) |
| 426 | Call(ctx) |
| 427 | assert.Contains(t, ctxString(ctx.Out), "-1") |
| 428 | |
| 429 | args[0] = "setex" |
| 430 | ctx = ContextTest("decr", args...) |
| 431 | Call(ctx) |
| 432 | assert.Contains(t, ctxString(ctx.Out), ErrInteger.Error()) |
| 433 | } |
| 434 | |
| 435 | func TestStringDecrBy(t *testing.T) { |
| 436 | args := make([]string, 2) |
nothing calls this directly
no test coverage detected