(t *testing.T)
| 366 | assert.Contains(t, ctxString(ctx.Out), ErrMaximum.Error()) |
| 367 | } |
| 368 | func TestStringIncr(t *testing.T) { |
| 369 | args := make([]string, 1) |
| 370 | args[0] = "incr" |
| 371 | ctx := ContextTest("incr", args...) |
| 372 | Call(ctx) |
| 373 | assert.Contains(t, ctxString(ctx.Out), "1") |
| 374 | |
| 375 | args[0] = "setex" |
| 376 | ctx = ContextTest("incr", args...) |
| 377 | Call(ctx) |
| 378 | assert.Contains(t, ctxString(ctx.Out), ErrInteger.Error()) |
| 379 | } |
| 380 | |
| 381 | func TestStringIncrBy(t *testing.T) { |
| 382 | args := make([]string, 2) |
nothing calls this directly
no test coverage detected