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

Method check_int

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

Source from the content-addressed store, hash-verified

246 self.assertEqual(bb.ri, bb.wi)
247
248 def check_int(self, x):
249 x = ByteBuffer.truncate_int(x)
250 bb = ByteBuffer()
251 bb.write_int(x)
252 y = bb.read_int()
253 self.assertEqual(x, y)
254 self.assertEqual(bb.ri, bb.wi)
255 self.assertEqual(bb.wi, ByteBuffer.write_long_size(x))
256
257 def check_long(self, x):
258 x = ByteBuffer.truncate_long(x)

Callers 2

check_allMethod · 0.95
test_integerMethod · 0.95

Calls 5

write_intMethod · 0.95
read_intMethod · 0.95
ByteBufferClass · 0.90
truncate_intMethod · 0.80
write_long_sizeMethod · 0.80

Tested by

no test coverage detected