Branch Coverage

blib/lib/DateTime/TimeZone/Alias.pm
Criterion Covered Total %
branch 34 40 85.0


line true false branch
14 8 5 unless @_
22 1 143 unless @_
27 3 144 if ($class->is_alias($p{$key})) { }
8 136 elsif ($class->is_timezone($p{$key})) { }
1 135 elsif ($p{$key} eq 'floating') { }
1 134 elsif ($p{$key} eq 'local') { }
0 134 elsif ($p{$key} eq 'UTC' or $p{$key} eq 'Z') { }
25 109 elsif ($p{$key} =~ /^ ([\+\-])? (\d\d?) :? (\d\d) (?::?(\d\d))? $/x) { }
54 1 3 unless @_
59 1 2 if (not $class->is_defined($key)) { }
70 0 2 unless @_
73 1 1 unless ($class->is_alias($key))
84 203 376 if ($class->is_alias($key)) { }
94 556 1 if ($class->is_timezone($def_candidate) or $class->is_alias($def_candidate)) { }
107 564 898 if (exists $DateTime::TimeZone::Catalog::LINKS{$alias_candidate}) { }
117 761 494 if (grep /^\Q$tz_candidate\E$/, @DateTime::TimeZone::Catalog::ALL) { }
127 0 1 unless defined wantarray
129 0 1 if (wantarray) { }
140 0 1 unless defined wantarray
142 0 1 if (wantarray) { }