(c *C)
| 19 | } |
| 20 | |
| 21 | func (s *MockClientSuite) TestAddSimple(c *C) { |
| 22 | item := createTestItem() |
| 23 | |
| 24 | resp := s.client.Add(item) |
| 25 | c.Assert(resp.Error(), IsNil) |
| 26 | c.Assert(resp.Key(), Equals, item.Key) |
| 27 | c.Assert(resp.DataVersionId(), Equals, uint64(1)) |
| 28 | |
| 29 | gresp := s.client.Get(item.Key) |
| 30 | c.Assert(gresp.Error(), IsNil) |
| 31 | c.Assert(bytes.Equal(gresp.Value(), item.Value), IsTrue) |
| 32 | c.Assert(gresp.DataVersionId(), Equals, uint64(1)) |
| 33 | } |
| 34 | |
| 35 | func (s *MockClientSuite) TestAddExists(c *C) { |
| 36 | item := createTestItem() |
nothing calls this directly
no test coverage detected