()
| 107 | #[test] |
| 108 | #[cfg(feature = "ppc")] |
| 109 | fn read_vmx128_coff() { |
| 110 | let diff_config = diff::DiffObjConfig { combine_data_sections: true, ..Default::default() }; |
| 111 | let obj = obj::read::parse( |
| 112 | include_object!("data/ppc/vmx128.obj"), |
| 113 | &diff_config, |
| 114 | diff::DiffSide::Base, |
| 115 | ) |
| 116 | .unwrap(); |
| 117 | insta::assert_debug_snapshot!(obj); |
| 118 | let symbol_idx = |
| 119 | obj.symbols.iter().position(|s| s.name == "?FloatingPointExample@@YAXXZ").unwrap(); |
| 120 | let diff = diff::code::no_diff_code(&obj, symbol_idx, &diff_config).unwrap(); |
| 121 | insta::assert_debug_snapshot!(diff.instruction_rows); |
| 122 | let output = common::display_diff(&obj, &diff, symbol_idx, &diff_config); |
| 123 | insta::assert_snapshot!(output); |
| 124 | } |
| 125 | |
| 126 | #[test] |
| 127 | #[cfg(feature = "ppc")] |
nothing calls this directly
no test coverage detected