(data_file_path)
| 485 | |
| 486 | @cross_language_test |
| 487 | def test_enum_field(data_file_path): |
| 488 | compatible = "compatible" in data_file_path |
| 489 | fory = pyfory.Fory(xlang=True, ref=False, compatible=compatible) |
| 490 | fory.register_type(EnumTestClass, name="test.EnumTestClass") |
| 491 | fory.register_type(EnumFieldStruct, name="test.EnumFieldStruct") |
| 492 | obj = EnumFieldStruct(f1=EnumTestClass.FOO, f2=EnumTestClass.BAR, f3="abc") |
| 493 | struct_round_back(data_file_path, fory, obj) |
| 494 | |
| 495 | |
| 496 | @cross_language_test |
nothing calls this directly
no test coverage detected