Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
adpaco-aws committed Sep 23, 2024
1 parent 4cc3561 commit 9e28668
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tools/kani-cov/src/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,16 @@ pub fn print_coverage_results(

let (max_times, line_fmt) = if let Some((_, Some((max, marker_info)))) = cur_line_result {
match marker_info {
MarkerInfo::FullLine => (
Some(max),
insert_escapes(&line, vec![(0, true), (line.len(), false)], format),
),
MarkerInfo::FullLine => {
(Some(max), insert_escapes(&line, vec![(0, true), (line.len(), false)], format))
}
MarkerInfo::Markers(results) => {
// Filter out cases where the span is a single unit AND it ends after the line
// TODO: Create issue and link
let results: Vec<&CovResult> = results
.iter()
.filter(|m| {
if m.region.start.0 as usize == idx
&& m.region.end.0 as usize == idx
{
if m.region.start.0 as usize == idx && m.region.end.0 as usize == idx {
(m.region.end.1 - m.region.start.1 != 1)
&& (m.region.end.1 as usize) < line.len()
} else {
Expand Down

0 comments on commit 9e28668

Please sign in to comment.