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

Function test_encode

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

Source from the content-addressed store, hash-verified

147 return major, minor
148
149def test_encode(major, minor, data):
150 hma = bin2hex(major)
151 hmi = bin2hex(minor)
152 output = test_latest('SPICE_Text', ACTION='Encode Input',
153 MAJOR_KEY=hma, MINOR_KEY=hmi, INPUT=data)
154 encoded = hex2bin(output.replace('\r', '').replace('\n', ''))
155 return encoded
156
157def test_decode(major, minor, data):
158 hma = bin2hex(major)

Callers 1

mainFunction · 0.85

Calls 4

bin2hexFunction · 0.85
test_latestFunction · 0.85
hex2binFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected