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

Function ido_mdebug_line_numbers

objdiff-core/tests/arch_mips.rs:68–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66#[test]
67#[cfg(feature = "mips")]
68fn ido_mdebug_line_numbers() {
69 let diff_config = diff::DiffObjConfig::default();
70 let obj = obj::read::parse(
71 include_object!("data/mips/ido_lines_example.o"),
72 &diff_config,
73 diff::DiffSide::Base,
74 )
75 .unwrap();
76
77 let text_section = obj.sections.iter().find(|s| s.name == ".text").unwrap();
78 assert_eq!(text_section.line_info.get(&0), Some(&6));
79 assert_eq!(text_section.line_info.get(&12), Some(&7));
80 assert_eq!(text_section.line_info.get(&56), Some(&9));
81 assert_eq!(text_section.line_info.len(), 66);
82}

Callers

nothing calls this directly

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected