MCPcopy
hub / github.com/dropbox/godropbox / TestGetNotFound

Method TestGetNotFound

memcache/raw_ascii_client_test.go:52–66  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

50}
51
52func (s *RawAsciiClientSuite) TestGetNotFound(c *C) {
53 s.rw.recvBuf.WriteString("END\r\n")
54
55 resp := s.client.Get("key")
56
57 c.Assert(s.rw.sendBuf.String(), Equals, "gets key\r\n")
58 c.Assert(s.client.IsValidState(), IsTrue)
59
60 c.Assert(resp.Error(), IsNil)
61 c.Assert(resp.Status(), Equals, StatusKeyNotFound)
62 c.Assert(resp.Key(), Equals, "key")
63 c.Assert(resp.Value(), IsNil)
64 c.Assert(resp.Flags(), Equals, uint32(0))
65 c.Assert(resp.DataVersionId(), Equals, uint64(0))
66}
67
68func (s *RawAsciiClientSuite) TestGetDupKeys(c *C) {
69 s.rw.recvBuf.WriteString("END\r\n")

Callers

nothing calls this directly

Calls 9

GetMethod · 0.65
StringMethod · 0.65
IsValidStateMethod · 0.65
ErrorMethod · 0.65
StatusMethod · 0.65
KeyMethod · 0.65
ValueMethod · 0.65
FlagsMethod · 0.65
DataVersionIdMethod · 0.65

Tested by

no test coverage detected