Condition Coverage

blib/lib/HealthCheck/Diagnostic.pm
Criterion Covered Total %
condition 51 59 86.4


and 3 conditions

line !l l&&!r l&&r condition
159 13 0 0 @params == 1 && (ref $params[0] || '') eq 'HASH'
257 47 0 0 @params == 1 && (ref $params[0] || '') eq 'HASH'
273 13 4 28 @res == 1 and (ref $res[0] || '') eq "HASH"
382 24 12 5 @results == 1 and $self->collapse_single_result
405 45 46 10 exists $r->{'id'} and my $i = $seen_ids{$r->{'id'} // ""}++
406 2 3 5 defined $r->{'id'} && length $r->{'id'}
415 6 58 37 exists $statuses->{$s} and $statuses->{$s} < ($statuses->{$status} // 5)
428 4 10 65 defined $rid and $rid =~ /^[a-z0-9_]+$/
435 0 121 4 defined $ts and $ts =~ /$rfc3339_timestamp/
455 6 1 272 defined $result->{'status'} and length $result->{'status'}
462 1 9 142 $result->{'status'} and $$statuses{$result->{'status'}}
10 7 135 $result->{'status'} and $$statuses{$result->{'status'}} and $statuses->{'UNKNOWN'} < $$statuses{$result->{'status'}}

or 2 conditions

line l !l condition
273 30 2 ref $res[0] || ''
341 22 156 $result->{'id'} // 0
373 239 45 $result->{'status'} || ''
378 42 3 ref $result->{'results'} || ''
405 53 3 $r->{'id'} // ""
415 63 32 $statuses->{$status} // 5
444 273 0 $result->{'status'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
259 41 6 0 ref $class_or_self || $class_or_self
402 52 27 22 $r->{'id'} // $i
422 230 32 0 $result->{'status'} //= $status