Skip to content

Commit

Permalink
fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastian Schubert committed Nov 2, 2022
1 parent bc8d6d2 commit 9aab72e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ impl OutputType {
OutputType::Covdir => path.join("covdir"),
OutputType::Html => path.join("html"),
OutputType::Cobertura => path.join("cobertura.xml"),
OutputType::Markdown => path.join("markdown.md"),
}
} else {
path.to_path_buf()
Expand Down
5 changes: 2 additions & 3 deletions src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ pub fn output_html(
html::gen_coverage_json(&global.stats, &config, &output);
}

pub fn output_markdown(results: &[(PathBuf, PathBuf, CovResult)], output_file: Option<&Path>) {
pub fn output_markdown(results: &[ResultTuple], output_file: Option<&Path>) {
#[derive(Tabled)]
struct LineSummary {
file: String,
Expand Down Expand Up @@ -955,8 +955,7 @@ mod tests {
),
];

let results = Box::new(results.into_iter());
output_markdown(results, Some(&file_path));
output_markdown(&results, Some(&file_path));

let results = &read_file(&file_path);
let expected = "| file | coverage | covered | missed_lines |
Expand Down

0 comments on commit 9aab72e

Please sign in to comment.