blib/lib/Locales.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 126 | 206 | 61.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
112 | 10 | 4 | 1 | $code eq $self->get_locale and $self->get_soft_locale_fallback |
153 | 0 | 4 | 0 | $self->{'language_data'}{'misc_info'}{'cldr_formats'}{'_decimal_format_group'} and $self->{'language_data'}{'misc_info'}{'cldr_formats'}{'_decimal_format_decimal'} |
169 | 1 | 0 | 0 | $always_return and $self->{'language_data'}{'misc_info'}{'cldr_formats'}{'_decimal_format_group'} |
0 | 0 | 0 | $always_return and $self->{'language_data'}{'misc_info'}{'cldr_formats'}{'_decimal_format_group'} and $self->{'language_data'}{'misc_info'}{'cldr_formats'}{'_decimal_format_decimal'} | |
170 | 2 | 0 | 1 | $self->{'language_data'}{'misc_info'}{'cldr_formats'}{'_decimal_format_group'} eq ',' and $self->{'language_data'}{'misc_info'}{'cldr_formats'}{'_decimal_format_decimal'} eq '.' |
1 | 0 | 1 | $self->{'language_data'}{'misc_info'}{'cldr_formats'}{'_decimal_format_group'} eq '.' and $self->{'language_data'}{'misc_info'}{'cldr_formats'}{'_decimal_format_decimal'} eq ',' | |
198 | 115714 | 5 | 2 | @_ == 1 and ref $_[0] |
223 | 115502 | 214 | 1 | $code eq $self->get_locale and $self->get_soft_locale_fallback |
247 | 4 | 0 | 2 | @_ == 1 and ref $_[0] |
273 | 231002 | 424 | 1 | $code eq $self->get_locale and $self->get_soft_locale_fallback |
333 | 6 | 1 | 0 | $cat_len != $val_len and $self->{'verbose'} |
343 | 16 | 2 | 2 | $has_extra_for_zero && $abs_n != 0 |
344 | 4 | 1 | 1 | $has_extra_for_zero && $abs_n == 0 |
359 | 11 | 0 | 0 | not defined $cat_pos_in_list and $category ne 'other' |
366 | 0 | 0 | 0 | $has_extra_for_zero && $abs_n != 0 |
367 | 0 | 0 | 0 | $has_extra_for_zero && $abs_n == 0 |
370 | 9 | 2 | 0 | $has_extra_for_zero and $category eq 'other' |
371 | 0 | 0 | 0 | $has_extra_for_zero && $abs_n == 0 |
372 | 0 | 0 | 0 | $has_extra_for_zero && $abs_n == 0 |
401 | 2 | 30 | 14 | exists $self->{'misc'}{'list_quote_mode'} and $self->{'misc'}{'list_quote_mode'} ne 'none' |
538 | 2 | 0 | 2 | defined $2 and $2 > 4 |
576 | 36 | 10 | 1 | $is_negative and $negative_pat |
647 | 8 | 14 | 8 | $cur_idx == $#i_pat and not length $i_pat[$cur_idx] |
667 | 3 | 27 | 0 | $cur_pat ne '0' and $cur_pat ne '#' |
673 | 18 | 5 | 7 | !length($i_pat[$cur_idx]) && @i_pat != 1 |
675 | 25 | 0 | 5 | $cur_idx == $#i_pat - 1 and $i_pat[$#i_pat] eq '#' |
25 | 3 | 2 | $cur_idx == $#i_pat - 1 and $i_pat[$#i_pat] eq '#' and not length $i_pat[$cur_idx] | |
689 | 0 | 0 | 3 | defined $decimals and length $decimals |
732 | 0 | 9 | 0 | $cur_pat ne '0' and $cur_pat ne '#' |
759 | 36 | 1 | 10 | $is_negative and not $negative_pat |
798 | 5 | 1 | 0 | $t and exists $self->{'territory_data'}{'code_to_name'}{$t} |
843 | 16 | 6 | 1 | $code eq $self->get_locale and $self->get_soft_locale_fallback |
1161 | 3 | 0 | 2 | $super ne $self->{'locale'} && $super ne 'i' |
3 | 0 | 2 | defined $special_lookup && ref $special_lookup eq 'CODE' |
line | l | !l | condition |
---|---|---|---|
31 | 798 | 2 | normalize_tag($tag) || 'en' |
112 | 0 | 1 | $always_return ||= 1 |
113 | 9 | 6 | $always_return ||= 0 |
137 | 0 | 0 | get_locale_display_pattern_from_code_fast($code) || $self->{'language_data'}{'misc_info'}{'cldr_formats'}{'locale'} || '{0} ({1})' |
149 | 0 | 4 | $always_return ||= 0 |
223 | 0 | 1 | $always_return ||= 1 |
224 | 1 | 115716 | $always_return ||= 0 |
273 | 0 | 1 | $always_return ||= 1 |
274 | 1 | 231426 | $always_return ||= 0 |
484 | 2 | 0 | $self->{'language_data'}{'misc_info'}{'cldr_formats'}{'ellipsis'}{'initial'} || "\342\200\246{0}" |
491 | 2 | 0 | $self->{'language_data'}{'misc_info'}{'cldr_formats'}{'ellipsis'}{'medial'} || "{0}\342\200\246{1}" |
498 | 2 | 0 | $self->{'language_data'}{'misc_info'}{'cldr_formats'}{'ellipsis'}{'final'} || "{0}\342\200\246" |
843 | 0 | 1 | $always_return ||= 1 |
844 | 14 | 9 | $always_return ||= 0 |
858 | 8 | 0 | $self->{'language_data'}{'misc_info'}{'cldr_formats'}{'locale'} || '{0} ({1})' |
949 | 3 | 0 | normalize_tag($_[0]) || (return) |
959 | 3 | 0 | normalize_tag($_[0]) || (return) |
1170 | 1 | 0 | $_[0]{'language_data'}{'misc_info'}{'cldr_formats'}{'_decimal_format_decimal'} || '.' |
1174 | 1 | 0 | $_[0]{'language_data'}{'misc_info'}{'cldr_formats'}{'_decimal_format_group'} || ',' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
108 | 12 | 3 | 0 | $code ||= $self->{'locale'} |
123 | 3 | 0 | 6 | $ln or $tn |
134 | 3 | 2 | 0 | $ln ||= $l |
135 | 3 | 2 | 0 | $tn ||= $t |
155 | 0 | 0 | 0 | $self->{'language_data'}{'misc_info'}{'cldr_formats'}{'_decimal_format_group'} or not $self->{'language_data'}{'misc_info'}{'cldr_formats'}{'_decimal_format_decimal'} |
0 | 0 | 0 | not $self->{'language_data'}{'misc_info'}{'cldr_formats'}{'_decimal_format_group'} or $self->{'language_data'}{'misc_info'}{'cldr_formats'}{'_decimal_format_decimal'} | |
219 | 115714 | 3 | 0 | $code ||= $self->{'locale'} |
269 | 231424 | 3 | 0 | $code ||= $self->{'locale'} |
416 | 6 | 4 | 14 | $items_ar->[$i] eq '' or $items_ar->[$i] =~ /\A(?: |\xc2\xa0)+\z/ |
527 | 12 | 0 | 37 | $n > 10000000000 or $n < -10000000000 |
572 | 0 | 0 | 47 | $_my_pattern || $self->{'language_data'}{'misc_info'}{'cldr_formats'}{'decimal'} |
596 | 0 | 0 | 47 | not defined $format or $format eq '' |
0 | 0 | 47 | not defined $format or $format eq '' or $format =~ /^\s+$/ | |
631 | 0 | 0 | 3 | $i_pat[0] =~ s/((?:\'.\')+)$// or $i_pat[0] =~ s/([^0#]+)$// |
698 | 0 | 1 | 3 | $d_pat[-1] =~ s/((?:\'.\')+)$// or $d_pat[-1] =~ s/([^0#]+)$// |
786 | 9 | 2 | 1 | $code ||= $self->{'territory'} |
793 | 6 | 0 | 0 | not defined $self->{'territory'} or $code ne $self->{'territory'} |
839 | 17 | 6 | 0 | $code ||= $self->{'locale'} |
854 | 5 | 0 | 9 | $ln or $tn |
855 | 5 | 3 | 0 | $ln ||= $l |
856 | 4 | 4 | 0 | $tn ||= $t |
960 | 1 | 0 | 2 | $tag eq 'en_us' or $tag eq 'i_default' |