Condition Coverage

blib/lib/Time/Zone/Olson.pm
Criterion Covered Total %
condition 46 91 50.5


and 3 conditions

line !l l&&!r l&&r condition
142 0 0 43 defined $offsets_self{$transition_time} and $offsets_self{$transition_time} == $offsets_compare{$transition_time}
166 5 0 41 $self->{'_zonetab_last_modified'} and $self->{'_zonetab_last_modified'} == $last_modified
3 0 2 $_zonetab_cache->{'_zonetab_last_modified'} and $_zonetab_cache->{'_zonetab_last_modified'} == $last_modified
226 8296 856 0 $area eq $Time::Zone::Olson::LAST_PAREN_MATCH{'area'} and $Time::Zone::Olson::LAST_PAREN_MATCH{'location'}
290 91885 12 28848 $year % _EVERY_FOUR_YEARS() == 0 and $year % _EVERY_ONE_HUNDRED_YEARS() != 0
307 0 0 13 defined $tz_definition->{'start_day'} and defined $tz_definition->{'end_day'}
0 0 13 defined $tz_definition->{'start_day'} and defined $tz_definition->{'end_day'} and defined $tz_definition->{'start_week'}
0 0 13 defined $tz_definition->{'start_day'} and defined $tz_definition->{'end_day'} and defined $tz_definition->{'start_week'} and defined $tz_definition->{'end_week'}
0 0 13 defined $tz_definition->{'start_day'} and defined $tz_definition->{'end_day'} and defined $tz_definition->{'start_week'} and defined $tz_definition->{'end_week'} and defined $tz_definition->{'start_month'}
0 0 13 defined $tz_definition->{'start_day'} and defined $tz_definition->{'end_day'} and defined $tz_definition->{'start_week'} and defined $tz_definition->{'end_week'} and defined $tz_definition->{'start_month'} and defined $tz_definition->{'end_month'}
339 0 0 0 $dst_start_time < $check_time and $check_time < $dst_end_time
870 24559 276 210 $transition_time_in_gmt > $time - $previous_offset and $transition_time_in_gmt <= $time - $local_time_type->{'gmtoff'}
897 0 0 842 defined $first_transition_time and $first_standard_time_type
0 841 1 defined $first_transition_time and $first_standard_time_type and $time < $first_transition_time + $first_standard_time_type->{'gmtoff'}
963 0 2508 3 defined $first_transition_time and $time < $first_transition_time
1350 484 0 2 defined $tz_definition->{'dst_sign'} and $tz_definition->{'dst_sign'} eq '-'
1378 192 0 294 defined $tz_definition->{'std_sign'} and $tz_definition->{'std_sign'} eq '-'
1467 0 0 487 $header->{'version'} and $header->{'version'} >= 2
0 0 487 $header->{'version'} and $header->{'version'} >= 2 and defined $Time::Zone::Olson::Config{'d_quad'}
0 0 487 $header->{'version'} and $header->{'version'} >= 2 and defined $Time::Zone::Olson::Config{'d_quad'} and $Time::Zone::Olson::Config{'d_quad'} eq 'define'
1508 562 0 6567 $self->{'_tzdata'}{$tz}{'last_modified'} and $self->{'_tzdata'}{$tz}{'last_modified'} == $last_modified
487 75 0 $_tzdata_cache->{$tz} and $_tzdata_cache->{$tz}{'last_modified'}
0 0 75 $_tzdata_cache->{$tz} and $_tzdata_cache->{$tz}{'last_modified'} and $_tzdata_cache->{$tz}{'last_modified'} == $last_modified

or 2 conditions

line l !l condition
1339 0 486 $tz_definition->{'dst_seconds'} || 0
1366 0 486 $tz_definition->{'std_seconds'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
91 0 79 0 $params->{'directory'} || $ENV{'TZDIR'} || _DEFAULT_ZONEINFO_DIRECTORY()
96 3 0 75 $params->{'timezone'} || $ENV{'TZ'}
122 1 2 0 $from_time //= time
243 2 0 0 $tz ||= $self->timezone
290 2233 0 120745 $year % _EVERY_FOUR_HUNDRED_YEARS() == 0 or $year % _EVERY_FOUR_YEARS() == 0 and $year % _EVERY_ONE_HUNDRED_YEARS() != 0
346 0 13 0 $check_time < $dst_start_time or $dst_end_time < $check_time