MCPcopy Index your code
hub / github.com/encounter/objdiff / read_vmx128_coff

Function read_vmx128_coff

objdiff-core/tests/arch_ppc.rs:109–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107#[test]
108#[cfg(feature = "ppc")]
109fn 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")]

Callers

nothing calls this directly

Calls 3

parseFunction · 0.85
no_diff_codeFunction · 0.85
display_diffFunction · 0.85

Tested by

no test coverage detected