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

Method TestGet

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

Source from the content-addressed store, hash-verified

31}
32
33func (s *LocalMapStorageSuite) TestGet(c *C) {
34 s.localMap.set(&testKeyVal{"foo", 1})
35
36 result, err := s.storage.Get("foo")
37 c.Assert(err, IsNil)
38 c.Assert(result.(*testKeyVal).key, Equals, "foo")
39 c.Assert(result.(*testKeyVal).val, Equals, 1)
40}
41
42func (s *LocalMapStorageSuite) TestGetMulti(c *C) {
43 s.localMap.set(&testKeyVal{"foo", 1})

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected