This commit is contained in:
Guillaume Gomez 2020-08-20 21:28:06 +02:00
parent d108bd5386
commit 5e9cc4e319

View file

@ -143,11 +143,7 @@ impl CoverageCalculator {
) {
println!(
"| {:<35} | {:>10} | {:>9.1}% | {:>10} | {:>9.1}% |",
name,
count.with_docs,
percentage,
count.with_examples,
examples_percentage,
name, count.with_docs, percentage, count.with_examples, examples_percentage,
);
}
@ -247,12 +243,7 @@ impl fold::DocFolder for CoverageCalculator {
| clean::ConstantItem(_)
);
find_testable_code(
&i.attrs
.doc_strings
.iter()
.map(|d| d.as_str())
.collect::<Vec<_>>()
.join("\n"),
&i.attrs.doc_strings.iter().map(|d| d.as_str()).collect::<Vec<_>>().join("\n"),
&mut tests,
ErrorCodes::No,
false,