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

Method TestSet

caching/generic_storage_test.go:61–68  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

59}
60
61func (s *GenericStorageSuite) TestSet(c *C) {
62 s.generic.Set(&testKeyVal{"foo", 1})
63
64 result, err := s.generic.Get("foo")
65 c.Assert(err, IsNil)
66 c.Assert(result.(*testKeyVal).key, Equals, "foo")
67 c.Assert(result.(*testKeyVal).val, Equals, 1)
68}
69
70func (s *GenericStorageSuite) TestSetMulti(c *C) {
71 s.generic.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