mirror of https://github.com/helix-editor/helix
Compare commits
No commits in common. "c86b41596519a181506758edd1f31f1baca3c9a5" and "c142d85f7114a72d41c512d5249607881f1fb054" have entirely different histories.
c86b415965
...
c142d85f71
|
@ -115,7 +115,6 @@ fn find_coverage_file() -> Option<std::path::PathBuf> {
|
||||||
return Some(std::path::PathBuf::from(coverage_path));
|
return Some(std::path::PathBuf::from(coverage_path));
|
||||||
}
|
}
|
||||||
for entry in walkdir::WalkDir::new(".")
|
for entry in walkdir::WalkDir::new(".")
|
||||||
.max_depth(1)
|
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_map(|e| e.ok())
|
.filter_map(|e| e.ok())
|
||||||
{
|
{
|
||||||
|
@ -162,7 +161,7 @@ impl From<RawCoverage> for Coverage {
|
||||||
// so check each in the path
|
// so check each in the path
|
||||||
let raw_path: std::path::PathBuf =
|
let raw_path: std::path::PathBuf =
|
||||||
[&source.name, &class.filename].iter().collect();
|
[&source.name, &class.filename].iter().collect();
|
||||||
if let Ok(path) = std::fs::canonicalize(raw_path.clone()) {
|
if let Ok(path) = std::fs::canonicalize(raw_path) {
|
||||||
log::debug!("add file {:?} to coverage", path);
|
log::debug!("add file {:?} to coverage", path);
|
||||||
files.insert(
|
files.insert(
|
||||||
path,
|
path,
|
||||||
|
@ -173,7 +172,7 @@ impl From<RawCoverage> for Coverage {
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
log::warn!("could not add file {:?} to coverage", raw_path);
|
log::warn!("could not add file {:?} to coverage", path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -172,7 +172,7 @@ pub fn coverage<'doc>(
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log::info!("return empty coverage gutter");
|
log::info!("return empty coverage gutter for {:?}", document_path);
|
||||||
return Box::new(move |_, _, _, _| None);
|
return Box::new(move |_, _, _, _| None);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue