MCPcopy Create free account
hub / github.com/distributedio/titan / TestStringIncr

Function TestStringIncr

command/strings_test.go:368–379  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

366 assert.Contains(t, ctxString(ctx.Out), ErrMaximum.Error())
367}
368func 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
381func TestStringIncrBy(t *testing.T) {
382 args := make([]string, 2)

Callers

nothing calls this directly

Calls 4

ContextTestFunction · 0.85
CallFunction · 0.85
ctxStringFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected