MCPcopy
hub / github.com/jtesta/ssh-audit / _b

Method _b

test/test_buffer.py:17–20  ·  view source on GitHub ↗
(cls, v)

Source from the content-addressed store, hash-verified

15
16 @classmethod
17 def _b(cls, v):
18 v = re.sub(r'\s', '', v)
19 data = [int(v[i * 2:i * 2 + 2], 16) for i in range(len(v) // 2)]
20 return bytes(bytearray(data))
21
22 def test_unread(self):
23 w = self.wbuf().write_byte(1).write_int(2).write_flush()

Callers 10

test_byteMethod · 0.95
test_boolMethod · 0.95
test_intMethod · 0.95
test_stringMethod · 0.95
test_listMethod · 0.95
test_list_nonutf8Method · 0.95
test_lineMethod · 0.95
test_line_nonutf8Method · 0.95
test_mpint1Method · 0.95
test_mpint2Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected