()
| 404 | |
| 405 | #[test] |
| 406 | fn test_parse_v3_as_v4() { |
| 407 | // Parse V3 binary artifact using UnwindData::parse — it converts to V4 |
| 408 | let parsed = UnwindData::parse(V3_BINARY).expect("Failed to parse V3 data as V4"); |
| 409 | |
| 410 | // Should match the V3 data with the hdr fields wrapped in `Some` |
| 411 | let expected: UnwindDataV4 = create_sample_v3().into(); |
| 412 | assert_eq!(parsed, expected); |
| 413 | assert!(parsed.eh_frame_hdr.is_some()); |
| 414 | } |
| 415 | |
| 416 | #[test] |
| 417 | fn test_parse_v4_as_v4() { |
nothing calls this directly
no test coverage detected