StringCase check string case
(t *testing.T)
| 49 | |
| 50 | //StringCase check string case |
| 51 | func (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 |
| 82 | func (an *Abnormal) ListCase(t *testing.T) { |
nothing calls this directly
no test coverage detected