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
153 13 0 0 @params == 1 && (ref $params[0] || '') eq 'HASH'
243 45 0 0 @params == 1 && (ref $params[0] || '') eq 'HASH'
259 12 4 27 @res == 1 and (ref $res[0] || '') eq 'HASH'
364 24 11 5 @results == 1 and $self->collapse_single_result
387 45 44 10 exists $r->{'id'} and my $i = $seen_ids{$r->{'id'} // ''}++
388 2 3 5 defined $r->{'id'} && length $r->{'id'}
397 6 57 36 exists $statuses->{$s} and $statuses->{$s} < ($statuses->{$status} // 5)
410 4 10 61 defined $rid and $rid =~ /^[a-z0-9_]+$/
417 0 121 4 defined $ts and $ts =~ /$rfc3339_timestamp/x
437 5 1 269 defined $result->{'status'} and length $result->{'status'}
444 1 9 141 $result->{'status'} and $$statuses{$result->{'status'}}
10 6 135 $result->{'status'} and $$statuses{$result->{'status'}} and $statuses->{'UNKNOWN'} < $$statuses{$result->{'status'}}

or 2 conditions

line l !l condition
259 29 2 ref $res[0] || ''
327 20 156 $result->{'id'} // 0
355 237 43 $result->{'status'} || ''
360 41 3 ref $result->{'results'} || ''
387 51 3 $r->{'id'} // ''
397 62 31 $statuses->{$status} // 5
426 270 0 $result->{'status'} // ''

or 3 conditions

line l !l&&r !l&&!r condition
245 39 6 0 ref $class_or_self || $class_or_self
384 50 27 22 $r->{'id'} // $i
404 228 31 0 $result->{'status'} //= $status