MCPcopy Create free account
hub / github.com/encounter/objdiff / read_x86_indirect_table

Function read_x86_indirect_table

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

Source from the content-addressed store, hash-verified

108#[test]
109#[cfg(feature = "x86")]
110fn read_x86_indirect_table() {
111 let diff_config = diff::DiffObjConfig::default();
112 let obj = obj::read::parse(
113 include_object!("data/x86/indirect_table.obj"),
114 &diff_config,
115 diff::DiffSide::Base,
116 )
117 .unwrap();
118 insta::assert_debug_snapshot!(obj);
119 let symbol_idx = obj.symbols.iter().position(|s| s.name == "?process@@YAHHHH@Z").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}

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