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

Function combine_text_sections

objdiff-core/tests/arch_arm.rs:45–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43#[test]
44#[cfg(feature = "arm")]
45fn combine_text_sections() {
46 let diff_config = diff::DiffObjConfig { combine_text_sections: true, ..Default::default() };
47 let obj = obj::read::parse(
48 include_object!("data/arm/enemy300.o"),
49 &diff_config,
50 diff::DiffSide::Base,
51 )
52 .unwrap();
53 let symbol_idx = obj.symbols.iter().position(|s| s.name == "Enemy300Draw").unwrap();
54 let diff = diff::code::no_diff_code(&obj, symbol_idx, &diff_config).unwrap();
55 insta::assert_debug_snapshot!(diff.instruction_rows);
56 let output = common::display_diff(&obj, &diff, symbol_idx, &diff_config);
57 insta::assert_snapshot!(output);
58}
59
60#[test]
61#[cfg(feature = "arm")]

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