(t *testing.T)
| 317 | } |
| 318 | |
| 319 | func TestHashLen(t *testing.T) { |
| 320 | server.Clear() |
| 321 | |
| 322 | c, err := proto.Dial(server.Addr()) |
| 323 | ok(t, err) |
| 324 | defer c.Close() |
| 325 | mustOK(t, c, "HMSET", "wim", |
| 326 | "gijs", "lam", |
| 327 | "kees", "bok", |
| 328 | "teun", "vuur", |
| 329 | "zus", "jet") |
| 330 | mustDo(t, c, "HLEN", "wim", proto.Int(4)) |
| 331 | |
| 332 | must0(t, c, "HLEN", "nosuch") |
| 333 | |
| 334 | // Wrong key type |
| 335 | directDoString(t, c, "SET", "foo", "bar") |
| 336 | mustDo(t, c, "HLEN", "foo", proto.Error(msgWrongType)) |
| 337 | } |
| 338 | |
| 339 | func TestHashMget(t *testing.T) { |
| 340 | server.Clear() |
nothing calls this directly
no test coverage detected