Condition Coverage

blib/lib/Time/TZif/POSIX.pm
Criterion Covered Total %
condition 82 104 78.8


and 3 conditions

line !l l&&!r l&&r condition
67 0 1 85 @_ & 1 and @_ >= 3
82 0 1 21 defined $v and exists $ValidPolicy{$v}
87 0 1 20 defined $v and exists $ValidPolicy{$v}
155 0 1 2 defined $policy and exists $ValidPolicy{$policy}
168 0 1 2 defined $policy and exists $ValidPolicy{$policy}
182 2 1 72 $h <= 24 and $m <= 59
3 1 71 $h <= 24 and $m <= 59 and $s <= 59
193 1 1 61 $h <= 167 and $m <= 59
2 1 60 $h <= 167 and $m <= 59 and $s <= 59
209 1 1 94 $m >= 1 and $m <= 12
217 1 1 4 $jday >= 1 and $jday <= 365
223 0 1 6 $nday >= 0 and $nday <= 365
240 0 0 70 $std_offset >= -86400 and $std_offset <= 86400
253 0 0 60 $dst_offset >= -86400 and $dst_offset <= 86400
298 10 91 2 $r->{'type'} eq "M" and $r->{'month'} == 12
91 7 3 $r->{'type'} ne "M" and $r->{'day'} >= 359
310 10 92 1 $r->{'type'} eq "M" and $r->{'month'} == 1
92 8 2 $r->{'type'} ne "M" and $r->{'day'} <= 7
338 1 2 5 $doy >= 60 and leap_year($year)
343 19 1 0 $doy == 366 and not leap_year($year)
388 0 0 114 $year_index >= 0 and $year_index < 50
433 0 0 54 (@_ & 1) == 0 and @_ >= 2
440 0 1 5 defined $v and exists $ValidPolicy{$v}
445 0 1 11 defined $v and exists $ValidPolicy{$v}
471 15 26 10 $prev_off <= $boundary and $boundary < $next_off
480 24 2 15 $next_off <= $boundary and $boundary < $prev_off

or 2 conditions

line l !l condition
100 20 58 $state{'gap_policy'} //= "reject"
101 20 58 $state{'overlap_policy'} //= "reject"
181 7 68 $3 // 0
3 72 $4 // 0
192 0 63 $3 // 0
0 63 $4 // 0
385 87 27 $self->{'cache_years'} //= []

or 3 conditions

line l !l&&r !l&&!r condition
145 1 1 1 not exists $self->{'name'} or $name ne $self->{'name'}
389 79 35 0 $cache->[$year_index] //= $self->_transitions_window_for_year($year)
472 5 5 0 $gap_policy //= $self->{'gap_policy'}
481 11 4 0 $overlap_policy //= $self->{'overlap_policy'}