Condition Coverage

lib/Date/Manip/TZ.pm
Criterion Covered Total %
condition 75 132 56.8


and 3 conditions

line !l l&&!r l&&r condition
254 1 2 1 $#zone == 0 and lc $zone[0] eq "reset"
291 12 0 0 $#args == 0 and lc $args[0] eq "reset"
322 5 3 2 $#isdst == 0 and not exists $self->{'data'}{'Offsets'}{$offset}{$isdst[0]}
338 7 3 2 $#isdst == 0 and not exists $tmp{$isdst[0]}{$lcz}
451 518 0 0 $type ne "zone" and $type ne "offset"
581 0 0 0 -f $file and -d $dir
720 0 0 0 -d $zoneinfo and -f $localtime
755 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)
799 0 0 0 defined $tzkn and $tzkn
826 0 0 0 defined $atz and $atz
830 0 0 0 defined $atz and $atz
961 482 11 71 $offset and @$date
493 1 70 $offset and @$date and not $dstflag
977 188 0 376 $zone and not $abbrev
1082 4129 1088 1874 $abbrev ne "" and lc $abbrev ne lc $period->[4]
1461 1475 2281 $offset ne "" and $offset ne $period->[2]
2936 0 0 $isdst ne "" and $isdst ne $period->[5]
1234 3133 4 5 $year > $self->{'data'}{'LastYear'} and exists $self->{'data'}{'Zones'}{$zone}{'LastRule'}{'zone'}
1378 32486 12849 24721 ($dates cmp $begLTs) != -1 and ($dates cmp $endLTs) != 1
1405 0 209 5549 ($dates cmp $begUTs) != -1 and ($dates cmp $endUTs) != 1

or 3 conditions

line l !l&&r !l&&!r condition
338 8 4 1 exists $tmp{'0'}{$lcz} || exists $tmp{'1'}{$lcz}
497 0 0 0 $line =~ /^\s*\043/ or $line =~ /^\s*$/
769 0 0 0 exists $Date::Manip::Zones::ZoneNames{lc $zone} or exists $Date::Manip::Zones::Alias{lc $zone}
898 1 0 45 exists $self->{'data'}{'MyAbbrev'}{$arg} or exists $self->{'data'}{'Abbrev'}{$arg}
948 376 117 71 $zone or $abbrev
117 68 3 $zone or $abbrev or $offset
978 0 0 0 exists $self->{'data'}{'MyAbbrev'}{$zone} or exists $self->{'data'}{'Abbrev'}{$zone}
1034 16 136 3 $self->{'data'}{'MyOffsets'}{$offset}{$isdst} || $self->{'data'}{'Offsets'}{$offset}{$isdst}
1082 1874 2281 2936 $abbrev ne "" and lc $abbrev ne lc $period->[4] or $offset ne "" and $offset ne $period->[2]
2281 0 2936 $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 374 2562 $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
374 348 2214 $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
1128 239369 87918 1830 lc $abbrev ne lc $abb or $isdst != $dst
1153 98884 2927 4363 lc $abbrev ne lc $abb or $offset ne $off
101811 4178 185 lc $abbrev ne lc $abb or $offset ne $off or $isdst != $dst
1302 1 0 3 $y > $year1 or $y > $lastyear
1360 0 0 30238 $year < 0 or $year > 9999
1565 0 0 178 $args[0] eq 0 or $args[0] eq 1
1805 0 90 0 $val =~ /^$da1rx$dstrx$zonrx$/o or $val =~ /^$da2rx$dstrx$zonrx$/o
0 0 0 $val =~ /^$da1rx$/o or $val =~ /^$da2rx$/o
1912 271 90 0 $op eq "nowzone" or $op eq "datezone"
361 0 0 $op eq "nowzone" or $op eq "datezone" or $op eq "date"