Condition Coverage

lib/Date/Manip/TZ.pm
Criterion Covered Total %
condition 76 129 58.9


and 3 conditions

line !l l&&!r l&&r condition
254 1 2 1 $#zone == 0 and lc $zone[0] eq "reset"
288 12 0 0 $#args == 0 and lc $args[0] eq "reset"
319 5 3 2 $#isdst == 0 and not exists $self->{'data'}{'Offsets'}{$offset}{$isdst[0]}
335 7 3 2 $#isdst == 0 and not exists $tmp{$isdst[0]}{$lcz}
448 512 0 0 $type ne "zone" and $type ne "offset"
578 0 0 0 -f $file and -d $dir
717 0 0 0 -d $zoneinfo and -f $localtime
752 0 0 0 defined($zone = _zoneinfo_file_name_to_zone($File::Find::name, $zoneinfo)) and -f $_
0 0 0 defined($zone = _zoneinfo_file_name_to_zone($File::Find::name, $zoneinfo)) and -f $_ and $want_size == -s _
0 0 0 defined($zone = _zoneinfo_file_name_to_zone($File::Find::name, $zoneinfo)) and -f $_ and $want_size == -s _ and $want_content eq _zoneinfo_file_slurp($File::Find::name)
795 0 0 0 defined $tzkn and $tzkn
822 0 0 0 defined $atz and $atz
826 0 0 0 defined $atz and $atz
960 479 11 71 $offset and @$date
490 1 70 $offset and @$date and not $dstflag
976 189 0 372 $zone and not $abbrev
1081 4245 1090 1920 $abbrev ne "" and lc $abbrev ne lc $period->[4]
1557 1523 2255 $offset ne "" and $offset ne $period->[2]
3080 0 0 $isdst ne "" and $isdst ne $period->[5]
1233 3136 4 5 $year > $self->{'data'}{'LastYear'} and exists $self->{'data'}{'Zones'}{$zone}{'LastRule'}{'zone'}
1377 32310 12965 24690 ($dates cmp $begLTs) != -1 and ($dates cmp $endLTs) != 1
1404 0 209 5550 ($dates cmp $begUTs) != -1 and ($dates cmp $endUTs) != 1

or 3 conditions

line l !l&&r !l&&!r condition
335 8 4 1 exists $tmp{'0'}{$lcz} || exists $tmp{'1'}{$lcz}
494 0 0 488 $line =~ /^\s*\043/ or $line =~ /^\s*$/
894 1 0 45 exists $self->{'data'}{'MyAbbrev'}{$arg} or exists $self->{'data'}{'Abbrev'}{$arg}
947 372 118 71 $zone or $abbrev
118 68 3 $zone or $abbrev or $offset
977 0 0 0 exists $self->{'data'}{'MyAbbrev'}{$zone} or exists $self->{'data'}{'Abbrev'}{$zone}
1033 16 136 3 $self->{'data'}{'MyOffsets'}{$offset}{$isdst} || $self->{'data'}{'Offsets'}{$offset}{$isdst}
1081 1920 2255 3080 $abbrev ne "" and lc $abbrev ne lc $period->[4] or $offset ne "" and $offset ne $period->[2]
2255 0 3080 $abbrev ne "" and lc $abbrev ne lc $period->[4] or $offset ne "" and $offset ne $period->[2] or $isdst ne "" and $isdst ne $period->[5]
0 393 2687 $abbrev ne "" and lc $abbrev ne lc $period->[4] or $offset ne "" and $offset ne $period->[2] or $isdst ne "" and $isdst ne $period->[5] or $dmb->cmp($date, $period->[1]) == -1
393 453 2234 $abbrev ne "" and lc $abbrev ne lc $period->[4] or $offset ne "" and $offset ne $period->[2] or $isdst ne "" and $isdst ne $period->[5] or $dmb->cmp($date, $period->[1]) == -1 or $dmb->cmp($date, $period->[7]) == 1
1127 234113 85729 1845 lc $abbrev ne lc $abb or $isdst != $dst
1152 99025 2827 4246 lc $abbrev ne lc $abb or $offset ne $off
101852 4061 185 lc $abbrev ne lc $abb or $offset ne $off or $isdst != $dst
1301 1 0 3 $y > $year1 or $y > $lastyear
1359 0 0 30208 $year < 0 or $year > 9999
1564 0 0 176 $args[0] eq 0 or $args[0] eq 1
1802 0 90 0 $val =~ /^$da1rx$dstrx$zonrx$/o or $val =~ /^$da2rx$dstrx$zonrx$/o
0 0 0 $val =~ /^$da1rx$/o or $val =~ /^$da2rx$/o
1909 267 90 0 $op eq "nowzone" or $op eq "datezone"
357 0 0 $op eq "nowzone" or $op eq "datezone" or $op eq "date"