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

Method TestDelete

caching/local_map_storage_test.go:82–94  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

80}
81
82func (s *LocalMapStorageSuite) TestDelete(c *C) {
83 s.storage.SetMulti(&testKeyVal{"foo", 1}, &testKeyVal{"bar", 2})
84
85 s.storage.Delete("foo")
86 results, err := s.storage.GetMulti("foo", "bar")
87 c.Assert(err, IsNil)
88 c.Assert(len(results), Equals, 2)
89
90 c.Assert(results[0], IsNil)
91
92 c.Assert(results[1].(*testKeyVal).key, Equals, "bar")
93 c.Assert(results[1].(*testKeyVal).val, Equals, 2)
94}
95
96func (s *LocalMapStorageSuite) TestDeleteMulti(c *C) {
97 s.storage.SetMulti(

Callers

nothing calls this directly

Calls 3

SetMultiMethod · 0.65
DeleteMethod · 0.65
GetMultiMethod · 0.65

Tested by

no test coverage detected