Branch Coverage

blib/lib/DateTimeX/Lite/TimeZone.pm
Criterion Covered Total %
branch 78 96 81.2


line true false branch
33 12000 1 if (defined $name)
35 276 11724 if (exists $$links{$name}) { }
0 11724 elsif (exists $$links{uc $name}) { }
42 12000 1 if (defined $name)
43 10967 1033 if $CachedTimeZones{$name}
44 90 943 unless ($name =~ m[/] or $SpecialName{$name})
45 26 64 if ($name eq 'floating')
48 1 63 if ($name eq 'local')
52 39 24 if ($name eq 'UTC' or $name eq 'Z')
61 5 939 unless ($conf)
62 0 5 $ENV{'DATETIMEX_LITE_DEBUG'} ? :
68 0 939 if ($zone->is_olson)
69 0 0 $zone->can('olson_version') ? :
75 0 0 if ($object_version ne $catalog_version)
96 943 0 $file ? :
150 529 269 $type eq 'utc' ? :
154 783 15 if ($seconds < $self->max_span->[$end]) { }
166 9 789 unless (defined $span)
169 1 8 if $type eq 'utc'
190 644 139 if $max % 2 and $max != 3
192 0 783 if @{$$self{'spans'};} == 1
197 1988 3268 if ($seconds < $$current[$start]) { }
2492 776 elsif ($seconds >= $$current[$end]) { }
205 0 1988 if $i < $min
215 7 2485 if $i >= $max
222 106 670 if ($$current[5] and $type eq 'local')
231 0 106 unless defined $next
233 0 106 if (not $$next[5] and $$next[$start] <= $seconds and $seconds <= $$next[$end])
281 1118 0 if (@rules == 2) { }
0 0 elsif (@rules == 1) { }
283 559 559 $x ? :
303 37 1081 if $next->utc_rd_as_seconds < $self->max_span->[1]
332 16 1049 $x == 1 ? :
343 15 1050 if $seconds >= $$span[$start] and $seconds < $$span[$end]
354 530 269 $_[0] eq 'utc' ? :
379 7 6 $tz && $tz->isa('DateTimeX::Lite::TimeZone') ? :
388 1 223 if eval { do { $_[0]->isa('DateTimeX::Lite::TimeZone') } }
396 6 68 if eval { do { $_[0]->isa('DateTimeX::Lite::TimeZone') } }
404 3 1 wantarray ? :
410 1 1 wantarray ? :
416 3 2 wantarray ? :
421 1 2 if $_[0]->isa('DateTimeX::Lite::TimeZone')
422 0 3 unless exists $DateTimeX::Lite::TimeZone::Catalog::CATEGORIES{$_[0]}
426 2 1 wantarray ? :
433 1 0 wantarray ? :
439 1 4 if $_[0]->isa('DateTimeX::Lite::TimeZone')
441 0 5 unless exists $DateTimeX::Lite::TimeZone::Catalog::ZONES_BY_COUNTRY{lc $_[0]}
445 4 1 wantarray ? :