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

Method TestSet

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

Source from the content-addressed store, hash-verified

57}
58
59func (s *LocalMapStorageSuite) TestSet(c *C) {
60 s.storage.Set(&testKeyVal{"foo", 1})
61
62 result, err := s.storage.Get("foo")
63 c.Assert(err, IsNil)
64 c.Assert(result.(*testKeyVal).key, Equals, "foo")
65 c.Assert(result.(*testKeyVal).val, Equals, 1)
66}
67
68func (s *LocalMapStorageSuite) TestSetMulti(c *C) {
69 s.storage.SetMulti(&testKeyVal{"foo", 1}, &testKeyVal{"bar", 2})

Callers

nothing calls this directly

Calls 2

SetMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected