()
| 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 | } |
nothing calls this directly
no test coverage detected