Branch Coverage

blib/lib/DateTimeX/Lite/Locale.pm
Criterion Covered Total %
branch 38 60 63.3


line true false branch
39 61 447 if (defined $script)
45 38 23 if defined $territory
51 5 503 if (defined $variant)
57 333 175 if (defined $territory)
68 506 2 if (not $@ and $h)
69 8 498 if $original ne $name
79 4320 508 if $CachedLocales{$name}
82 2 506 unless ($conf)
119 42 464 unless exists $$self{'native_language'}
126 934 1090 if exists $$self{"en_$p"}
127 861 1163 if exists $$self{"native_$p"}
156 0 3 unless ($default)
173 0 3 unless ($default)
194 0 44 unless $self->can($meth)
205 0 0 unless $_->_available_formats
221 0 1 unless $l =~ /^(?:full|long|medium|short)$/i
231 0 1 unless $l =~ /^(?:full|long|medium|short)$/i
243 0 4 if exists $$self{$key}
286 1 2 if exists $$self{'prefers_24_hour_time'}
289 1 1 $self->time_format_short =~ /h|K/ ? :
299 0 0 $dt_format =~ /\{1\}.*\{0\}/ ? :
340 0 0 if $cldr_ok
342 0 0 if exists $$self{'_converted_patterns'}{$pattern}
388 0 0 $1 ? :
0 0 $2 ? :
399 0 0 if $simple =~ /$JavaPatterns[$x]/
480 1117 30266 if (defined $v and $v =~ /^alias:([^:]+)$/)
495 0 4 ref $_[0] ? :
499 0 4 if $alias eq $id
508 1 3 if $seen{$copy}