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

Method StringCase

tools/autotest/abnormal.go:51–79  ·  view source on GitHub ↗

StringCase check string case

(t *testing.T)

Source from the content-addressed store, hash-verified

49
50//StringCase check string case
51func (an *Abnormal) StringCase(t *testing.T) {
52 an.el.LpushEqual(t, "lpush", "key")
53 //set
54 an.es.SetEqualErr(t, "ERR wrong number of arguments for 'set' command", "fuck")
55 an.es.SetEqualErr(t, "ERR value is not an integer or out of range", "key", "v", "ex", "second")
56 an.es.SetEqualErr(t, "ERR invalid expire time in set", "key", "v", "ex", -10)
57 an.es.SetEqualErr(t, "ERR syntax error", "key", "v", "nx", "second")
58
59 an.es.GetEqualErr(t, "ERR wrong number of arguments for 'get' command", "hello", "fuck")
60 an.es.GetEqualErr(t, "WRONGTYPE Operation against a key holding the wrong kind of value", "lpush")
61
62 an.es.MSetEqualErr(t, "ERR wrong number of arguments for 'mset' command")
63 an.es.MSetEqualErr(t, "ERR wrong number of arguments for 'mset' command", "key")
64
65 an.es.MGetEqualErr(t, "ERR wrong number of arguments for 'mget' command")
66 an.es.MGetEqual(t, "lpush")
67
68 an.es.AppendEqualErr(t, "ERR wrong number of arguments for 'append' command", "he", "he", "he")
69 an.es.AppendEqualErr(t, "ERR wrong number of arguments for 'append' command", "he")
70 an.es.AppendEqualErr(t, "WRONGTYPE Operation against a key holding the wrong kind of value", "lpush", "hehe")
71
72 an.es.IncrEqualErr(t, "ERR wrong number of arguments for 'incr' command", "1", "m")
73 an.es.IncrEqualErr(t, "WRONGTYPE Operation against a key holding the wrong kind of value", "lpush")
74
75 an.es.StrlenEqualErr(t, "ERR wrong number of arguments for 'strlen' command", "heng", "heng")
76 an.es.StrlenEqualErr(t, "WRONGTYPE Operation against a key holding the wrong kind of value", "lpush")
77
78 an.el.LpopEqual(t, "lpush")
79}
80
81//ListCase check list case
82func (an *Abnormal) ListCase(t *testing.T) {

Callers

nothing calls this directly

Calls 10

LpushEqualMethod · 0.80
SetEqualErrMethod · 0.80
GetEqualErrMethod · 0.80
MSetEqualErrMethod · 0.80
MGetEqualErrMethod · 0.80
MGetEqualMethod · 0.80
AppendEqualErrMethod · 0.80
IncrEqualErrMethod · 0.80
StrlenEqualErrMethod · 0.80
LpopEqualMethod · 0.80

Tested by

no test coverage detected