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

Method check_long

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

Source from the content-addressed store, hash-verified

255 self.assertEqual(bb.wi, ByteBuffer.write_long_size(x))
256
257 def check_long(self, x):
258 x = ByteBuffer.truncate_long(x)
259 bb = ByteBuffer()
260 bb.write_long(x)
261 y = bb.read_long()
262 self.assertEqual(x, y)
263 self.assertEqual(bb.ri, bb.wi)
264 self.assertEqual(bb.wi, ByteBuffer.write_long_size(x))
265
266 def check_uint(self, x):
267 x = ByteBuffer.truncate_int(x)

Callers 2

check_allMethod · 0.95
test_integerMethod · 0.95

Calls 5

write_longMethod · 0.95
read_longMethod · 0.95
ByteBufferClass · 0.90
truncate_longMethod · 0.80
write_long_sizeMethod · 0.80

Tested by

no test coverage detected