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

Function test_serialize_simple_struct

python/pyfory/tests/test_cross_language.py:428–433  ·  view source on GitHub ↗
(data_file_path)

Source from the content-addressed store, hash-verified

426
427@cross_language_test
428def test_serialize_simple_struct(data_file_path):
429 compatible = "compatible" in data_file_path
430 fory = pyfory.Fory(xlang=True, ref=True, compatible=compatible)
431 fory.register_type(ComplexObject2, name="test.ComplexObject2")
432 obj = ComplexObject2(f1=True, f2={-1: 2})
433 struct_round_back(data_file_path, fory, obj)
434
435
436@cross_language_test

Callers

nothing calls this directly

Calls 4

register_typeMethod · 0.95
struct_round_backFunction · 0.85
ComplexObject2Class · 0.70
ForyMethod · 0.45

Tested by

no test coverage detected