MCPcopy Create free account
hub / github.com/e2wugui/zeze / check_ulong

Method check_ulong

python/test/test_buffer.py:279–286  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

277 self.assertEqual(bb.wi, ByteBuffer.write_ulong_size(x & 0xffff_ffff))
278
279 def check_ulong(self, x):
280 x = ByteBuffer.truncate_long(x)
281 bb = ByteBuffer()
282 bb.write_ulong(x)
283 y = bb.read_ulong()
284 self.assertEqual(x, y)
285 self.assertEqual(bb.ri, bb.wi)
286 self.assertEqual(bb.wi, ByteBuffer.write_ulong_size(x))
287
288 def check_skip_uint(self, x):
289 x = ByteBuffer.truncate_int(x)

Callers 2

check_allMethod · 0.95
test_integerMethod · 0.95

Calls 5

write_ulongMethod · 0.95
read_ulongMethod · 0.95
ByteBufferClass · 0.90
truncate_longMethod · 0.80
write_ulong_sizeMethod · 0.80

Tested by

no test coverage detected