MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / test_find_debug_file_by_debuglink

Function test_find_debug_file_by_debuglink

src/executor/helpers/debug_file.rs:153–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151
152 #[test]
153 fn test_find_debug_file_by_debuglink() {
154 let (_dir, binary, debug_file) =
155 setup_debuglink_tmpdir(Path::new(LIBC_PATH), Path::new(LIBC_DEBUG_PATH));
156 let content = std::fs::read(&binary).unwrap();
157 let object = object::File::parse(&*content).unwrap();
158
159 let empty_debug_dir = tempfile::tempdir().unwrap();
160 let result = find_debug_file_in(&object, &binary, empty_debug_dir.path());
161 assert_eq!(result, Some(debug_file));
162 }
163}

Callers

nothing calls this directly

Calls 4

setup_debuglink_tmpdirFunction · 0.85
find_debug_file_inFunction · 0.85
pathMethod · 0.80
readFunction · 0.50

Tested by

no test coverage detected