MCPcopy
hub / github.com/isso-comments/isso / dumps

Method dumps

isso/utils/cache.py:20–25  ·  view source on GitHub ↗
(self, value, protocol=pickle.HIGHEST_PROTOCOL)

Source from the content-addressed store, hash-verified

18 """
19
20 def dumps(self, value, protocol=pickle.HIGHEST_PROTOCOL):
21 try:
22 serialized = pickle.dumps(value, protocol)
23 except (pickle.PickleError, pickle.PicklingError) as e:
24 self._warn(e)
25 return serialized
26
27 def loads(self, bvalue):
28 try:

Callers 15

signMethod · 0.80
setMethod · 0.80
__init__Method · 0.80
moderateMethod · 0.80
showMethod · 0.80
testZeroLikesMethod · 0.80
testSingleLikeMethod · 0.80
testSelfLikeMethod · 0.80
testMultipleLikesMethod · 0.80
testTooManyLikesMethod · 0.80
testDislikeMethod · 0.80
testGetMethod · 0.80

Calls

no outgoing calls

Tested by 15

testZeroLikesMethod · 0.64
testSingleLikeMethod · 0.64
testSelfLikeMethod · 0.64
testMultipleLikesMethod · 0.64
testTooManyLikesMethod · 0.64
testDislikeMethod · 0.64
testGetMethod · 0.64
testCreateMethod · 0.64
testCreateMultipleMethod · 0.64