zhan7236 opened a new pull request, #3076:
URL: https://github.com/apache/fory/pull/3076

   ## What does this PR do?
   
   This PR adds cross-language (xlang) tests for Union types in 
XlangTestBase.java as requested in #3062.
   
   ### Changes:
   - Add \`StructWithUnionFields\` class with Union through Union6 fields for 
testing Union types as struct fields
   - Add \`testStructWithUnionFields()\` test method to verify 
serialization/deserialization of structs containing Union fields
   - Add \`testTopLevelUnion()\` test method to verify 
serialization/deserialization of top-level Union objects
   - Skip Union tests in \`GoXlangTest\` and \`RustXlangTest\` with 
\`SkipException\` (Union types not yet supported in Go/Rust)
   
   ### Test Details:
   1. **testStructWithUnionFields**: Creates a struct with Union1-6 fields 
containing different value types (Integer, String, Double, Boolean, Long, 
Float), serializes and deserializes it
   2. **testTopLevelUnion**: Tests serializing Union objects directly (not as 
struct fields), including both int and string variants
   
   ## Related issues
   
   Follow-up to #3062 (Java Union type support)
   Relates to #3030 (Union type support tracking issue)
   
   ## Does this PR introduce any user-facing change?
   
   No, this PR only adds tests.
   
   ## Benchmark
   
   N/A - test-only changes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to