MCPcopy Create free account
hub / github.com/apache/thrift / testCompactStruct

Method testCompactStruct

test/py/SerializationTest.py:272–277  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

270 self.assertTrue(len(rep) > 0)
271
272 def testCompactStruct(self):
273 # test large field deltas (meaningful in CompactProto only)
274 obj = self._deserialize(CompactProtoTestStruct, self._serialize(self.compact_struct))
275 self.assertEqual(obj, self.compact_struct)
276 rep = repr(self.compact_struct)
277 self.assertTrue(len(rep) > 0)
278
279 def testIntegerLimits(self):
280 bad_values = [CompactProtoTestStruct(a_byte=128), CompactProtoTestStruct(a_byte=-129),

Callers

nothing calls this directly

Calls 2

_deserializeMethod · 0.95
_serializeMethod · 0.95

Tested by

no test coverage detected