Condition Coverage

lib/Date/Manip/TZ.pm
Criterion Covered Total %
condition 76 132 57.5


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)
796 0 0 0 defined $tzkn and $tzkn
823 0 0 0 defined $atz and $atz
827 0 0 0 defined $atz and $atz
961 479 11 71 $offset and @$date
490 1 70 $offset and @$date and not $dstflag
977 189 0 372 $zone and not $abbrev
1082 4123 1090 1920 $abbrev ne "" and lc $abbrev ne lc $period->[4]
1459 1521 2233 $offset ne "" and $offset ne $period->[2]
2980 0 0 $isdst ne "" and $isdst ne $period->[5]
1234 3134 4 5 $year > $self->{'data'}{'LastYear'} and exists $self->{'data'}{'Zones'}{$zone}{'LastRule'}{'zone'}
1378 32428 12847 24690 ($dates cmp $begLTs) != -1 and ($dates cmp $endLTs) != 1
1405 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*$/
766 0 0 0 exists $Date::Manip::Zones::ZoneNames{lc $zone} or exists $Date::Manip::Zones::Alias{lc $zone}
895 1 0 45 exists $self->{'data'}{'MyAbbrev'}{$arg} or exists $self->{'data'}{'Abbrev'}{$arg}
948 372 118 71 $zone or $abbrev
118 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 1920 2233 2980 $abbrev ne "" and lc $abbrev ne lc $period->[4] or $offset ne "" and $offset ne $period->[2]
2233 0 2980 $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 392 2588 $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
392 354 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
1128 235637 86345 1845 lc $abbrev ne lc $abb or $isdst != $dst
1153 98175 2853 4274 lc $abbrev ne lc $abb or $offset ne $off
101028 4089 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 30208 $year < 0 or $year > 9999
1565 0 0 176 $args[0] eq 0 or $args[0] eq 1
1803 0 90 0 $val =~ /^$da1rx$dstrx$zonrx$/o or $val =~ /^$da2rx$dstrx$zonrx$/o
0 0 0 $val =~ /^$da1rx$/o or $val =~ /^$da2rx$/o
1910 267 90 0 $op eq "nowzone" or $op eq "datezone"
357 0 0 $op eq "nowzone" or $op eq "datezone" or $op eq "date"