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

Method check_skip_uint

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

Source from the content-addressed store, hash-verified

286 self.assertEqual(bb.wi, ByteBuffer.write_ulong_size(x))
287
288 def check_skip_uint(self, x):
289 x = ByteBuffer.truncate_int(x)
290 bb = ByteBuffer()
291 bb.write_uint(x)
292 bb.read_uint()
293 ri = bb.ri
294 bb.ri = 0
295 bb.skip_uint()
296 self.assertEqual(ri, bb.ri)
297
298 def check_skip_long(self, x):
299 x = ByteBuffer.truncate_long(x)

Callers 2

check_allMethod · 0.95
test_integerMethod · 0.95

Calls 5

write_uintMethod · 0.95
read_uintMethod · 0.95
skip_uintMethod · 0.95
ByteBufferClass · 0.90
truncate_intMethod · 0.80

Tested by

no test coverage detected