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 45 0 0 @params == 1 && (ref $params[0] || '') eq 'HASH'
273 12 4 27 @res == 1 and (ref $res[0] || '') eq "HASH"
378 24 11 5 @results == 1 and $self->collapse_single_result
401 45 44 10 exists $r->{'id'} and my $i = $seen_ids{$r->{'id'} // ""}++
402 2 3 5 defined $r->{'id'} && length $r->{'id'}
411 6 57 36 exists $statuses->{$s} and $statuses->{$s} < ($statuses->{$status} // 5)
424 4 10 61 defined $rid and $rid =~ /^[a-z0-9_]+$/
431 0 121 4 defined $ts and $ts =~ /$rfc3339_timestamp/x
451 5 1 269 defined $result->{'status'} and length $result->{'status'}
458 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
273 29 2 ref $res[0] || ''
341 20 156 $result->{'id'} // 0
369 237 43 $result->{'status'} || ''
374 41 3 ref $result->{'results'} || ''
401 51 3 $r->{'id'} // ""
411 62 31 $statuses->{$status} // 5
440 270 0 $result->{'status'} // ""

or 3 conditions

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