MCPcopy Index your code
hub / github.com/Textualize/textual / test_round_trip

Function test_round_trip

tests/test_binary_encode.py:47–52  ·  view source on GitHub ↗

Test the data may be encoded then decoded

(data: object)

Source from the content-addressed store, hash-verified

45 ],
46)
47def test_round_trip(data: object) -> None:
48 """Test the data may be encoded then decoded"""
49 encoded = dump(data)
50 assert isinstance(encoded, bytes)
51 decoded = load(encoded)
52 assert data == decoded
53
54
55@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

dumpFunction · 0.90
loadFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…