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

Method TestDeleteMulti

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

Source from the content-addressed store, hash-verified

94}
95
96func (s *LocalMapStorageSuite) TestDeleteMulti(c *C) {
97 s.storage.SetMulti(
98 &testKeyVal{"foo", 1},
99 &testKeyVal{"bar", 2},
100 &testKeyVal{"zzz", 3})
101
102 s.storage.DeleteMulti("foo", "zzz")
103 results, err := s.storage.GetMulti("foo", "bar", "zzz")
104 c.Assert(err, IsNil)
105 c.Assert(len(results), Equals, 3)
106
107 c.Assert(results[0], IsNil)
108
109 c.Assert(results[1].(*testKeyVal).key, Equals, "bar")
110 c.Assert(results[1].(*testKeyVal).val, Equals, 2)
111
112 c.Assert(results[2], IsNil)
113}
114
115func (s *LocalMapStorageSuite) TestFlush(c *C) {
116 s.storage.SetMulti(

Callers

nothing calls this directly

Calls 3

SetMultiMethod · 0.65
DeleteMultiMethod · 0.65
GetMultiMethod · 0.65

Tested by

no test coverage detected