()
| 37 | #[test] |
| 38 | #[cfg(feature = "x86")] |
| 39 | fn read_x86_64() { |
| 40 | let diff_config = diff::DiffObjConfig::default(); |
| 41 | let obj = obj::read::parse( |
| 42 | include_object!("data/x86_64/vs2022.o"), |
| 43 | &diff_config, |
| 44 | diff::DiffSide::Base, |
| 45 | ) |
| 46 | .unwrap(); |
| 47 | insta::assert_debug_snapshot!(obj); |
| 48 | let symbol_idx = |
| 49 | obj.symbols.iter().position(|s| s.name == "?Dot@Vector@@QEAAMPEAU1@@Z").unwrap(); |
| 50 | let diff = diff::code::no_diff_code(&obj, symbol_idx, &diff_config).unwrap(); |
| 51 | insta::assert_debug_snapshot!(diff.instruction_rows); |
| 52 | let output = common::display_diff(&obj, &diff, symbol_idx, &diff_config); |
| 53 | insta::assert_snapshot!(output); |
| 54 | } |
| 55 | |
| 56 | #[test] |
| 57 | #[cfg(feature = "x86")] |
nothing calls this directly
no test coverage detected