MCPcopy Create free account
hub / github.com/ActiveState/code / test_decode

Function test_decode

recipes/Python/576598_Utility_Mill_Test/recipe-576598.py:157–163  ·  view source on GitHub ↗
(major, minor, data)

Source from the content-addressed store, hash-verified

155 return encoded
156
157def test_decode(major, minor, data):
158 hma = bin2hex(major)
159 hmi = bin2hex(minor)
160 hda = bin2hex(data)
161 decoded = test_latest('SPICE_Text', ACTION='Decode Input',
162 MAJOR_KEY=hma, MINOR_KEY=hmi, INPUT=hda)
163 return decoded
164
165def bin2hex(x):
166 return ''.join('%02X' % ord(y) for y in x)

Callers 1

mainFunction · 0.85

Calls 2

bin2hexFunction · 0.85
test_latestFunction · 0.85

Tested by

no test coverage detected