Compare commits

..

No commits in common. "c86b41596519a181506758edd1f31f1baca3c9a5" and "c142d85f7114a72d41c512d5249607881f1fb054" have entirely different histories.

2 changed files with 3 additions and 4 deletions

View File

@ -115,7 +115,6 @@ fn find_coverage_file() -> Option<std::path::PathBuf> {
return Some(std::path::PathBuf::from(coverage_path));
}
for entry in walkdir::WalkDir::new(".")
.max_depth(1)
.into_iter()
.filter_map(|e| e.ok())
{
@ -162,7 +161,7 @@ impl From<RawCoverage> for Coverage {
// so check each in the path
let raw_path: std::path::PathBuf =
[&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);
files.insert(
path,
@ -173,7 +172,7 @@ impl From<RawCoverage> for Coverage {
);
break;
}
log::warn!("could not add file {:?} to coverage", raw_path);
log::warn!("could not add file {:?} to coverage", path);
}
}
}

View File

@ -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);
}