MCPcopy Create free account
hub / github.com/apache/fory / test_serialization_with_schema

Function test_serialization_with_schema

python/pyfory/tests/test_cross_language.py:204–211  ·  view source on GitHub ↗
(schema_file_path, data_file_path)

Source from the content-addressed store, hash-verified

202
203@cross_language_test
204def test_serialization_with_schema(schema_file_path, data_file_path):
205 from pyfory.format import Schema
206
207 with open(schema_file_path, "rb") as f:
208 schema_bytes = f.read()
209 schema = Schema.from_bytes(schema_bytes)
210 debug_print("deserialized schema", schema)
211 test_serialization_without_schema(data_file_path, schema)
212
213
214@cross_language_test

Callers

nothing calls this directly

Calls 4

debug_printFunction · 0.70
readMethod · 0.65
from_bytesMethod · 0.45

Tested by

no test coverage detected