Condition Coverage

blib/lib/Locale/CLDR.pm
Criterion Covered Total %
condition 116 259 44.7


and 3 conditions

line !l l&&!r l&&r condition
1305 86 20 0 @_ > 1 and ref $_[-1] eq "HASH"
1309 21 0 85 1 == @_ and not ref $_[0]
1319 51 33 1 not defined $script and length $language == 4
1344 100 0 6 defined $args{'extensions'} and not ref $args{'extensions'}
1795 1 3 3 ref $name and not $name->script_id
1863 2 7 0 ref $name and not $name->region_id
1972 0 0 3 defined $return and length $return
2253 41 0 119 !$grapheme_split && length $gc
2491 0 0 1 $outer > -1 and $inner > -1
0 0 1 $outer > -1 and $inner > -1 and $outer < $inner
2644 732 0 6 not $format and my($dividend, $divisor) = $what =~ /^(.+)-per-(.+)$/u
2985 0 0 0 length $rule->{'before'} and not $text =~ /$rule->{'before'}\G/u
4334 20 1 1 defined $default_currency_format and $default_currency_format ne "standard"
21 1 0 defined $default_currency_format and $default_currency_format ne "standard" and $default_currency_format ne "accounting"
4669 8 0 0 not length $method and length $text
4837 5 0 0 $type ne "standard" and not $override
4849 5 0 0 ref $self->extensions and $self->extensions->{'co'}
4863 5 0 0 ref $self->extensions and $self->extensions->{'ka'}
4877 5 0 0 ref $self->extensions and $self->extensions->{'kb'}
4891 5 0 0 ref $self->extensions and $self->extensions->{'kc'}
4905 5 0 0 ref $self->extensions and $self->extensions->{'kf'}
4919 5 0 0 ref $self->extensions and $self->extensions->{'kk'}
4933 5 0 0 ref $self->extensions and $self->extensions->{'kn'}
4947 5 0 0 ref $self->extensions and $self->extensions->{'kr'}
4952 0 0 0 ref($collation_reorder = $bundle->collation_reorder) and @$collation_reorder
4961 1 0 0 ref $self->extensions && $self->extensions->{'ks'}
4981 5 0 0 ref $self->extensions and $self->extensions->{'kv'}

or 2 conditions

line l !l condition
627 0 0 $self->likely_subtag->script || ''
654 0 0 $self->likely_subtag->region || ''
1358 101 5 $args{'language_id'} ||= "und"
1596 0 0 $self->language_name($for) // ""
1943 2 1 $variant // ""
1962 1 2 $key_aliases{$key} // ""
1963 2 1 $key_names{$key} // ""
1995 1 2 $key_aliases{$key} // ""
1996 2 1 $key_names{$key} // ""
2480 12 0 $quote{$_} //= ""
2535 1 0 $self->region_id || '001'
2557 1 0 $self->region_id || '001'
2603 494 244 $type //= "long"
2659 6 0 $type //= "long"
2876 0 0 $params{'variant'} // "Any"
2877 0 0 $params{'text'} // ""
3327 0 3 $type //= "default"
3763 0 0 $format_data->{$format} // ""
4642 9 0 $text //= ""
4726 0 0 $type //= "ordinal"
4727 0 0 $gender //= "neuter"
4843 0 5 $override || []
4857 0 5 $collation_type || 'standard'
4871 0 5 $collation_alternate || 'noignore'
4885 0 5 $collation_backwards || 'noignore'
4899 0 5 $collation_case_level || 'false'
4913 0 5 $collation_case_ordering || 'false'
4927 0 5 $collation_normalization || 'true'
4941 0 5 $collation_numeric || 'false'
4955 5 0 $collation_reorder || []
4975 0 1 $collation_strength || 3
4989 0 5 $collation_max_variable || 3

or 3 conditions

line l !l&&r !l&&!r condition
684 0 100 248 $path[$i] eq "und" or $path[$i] eq "Any"
853 0 0 0 $for //= $self
1499 0 2 0 $self->region_id || $self->likely_subtag->region_id
0 2 0 $region //= $self->region_id || $self->likely_subtag->region_id
1682 5 1 0 $name //= $self
1724 6 2 0 $name //= $self
1789 6 1 0 $name //= $self
1857 8 1 0 $name //= $self
1925 6 1 0 $name //= $self
1965 1 0 2 exists $valid_keys{$key} or exists $valid_keys{$alias}
0 2 0 exists $valid_keys{$key} or exists $valid_keys{$alias} or exists $valid_keys{$name}
1969 2 1 0 $return //= $bundle->display_name_key->{$alias}
1970 3 0 0 $return //= $bundle->display_name_key->{$name}
1975 0 0 0 $key_names{$name} || $key_names{$alias} || $key_names{$key} || $key
1998 1 0 2 exists $valid_keys{$key} or $valid_keys{$alias}
0 2 0 exists $valid_keys{$key} or $valid_keys{$alias} or $valid_keys{$name}
2003 2 1 0 $bundle->display_name_type->{$key} // $bundle->display_name_type->{$alias}
1 0 0 ($bundle->display_name_type->{$key} // $bundle->display_name_type->{$alias}) // $bundle->display_name_type->{$name}
2070 3 0 0 $locale //= $self
2491 2 1 0 $inner == -1 or $outer > -1 and $inner > -1 and $outer < $inner
2874 0 0 0 $params{'from'} // $self
2893 0 0 0 $transforms->{$variant}{$from}{$to} //= $package->new
3338 3 0 0 $day_period ||= $time < 1200 ? "am" : "pm"
4011 0 4 0 $self->region_id || $self->likely_subtag->region_id
0 4 0 $region_id //= $self->region_id || $self->likely_subtag->region_id
4339 2 20 0 $default_currency_format //= $self->default_currency_format
4454 0 9 0 $region_id //= $self->region_id
4485 17 0 0 $currency_id //= $self->default_currency
4813 0 5 0 $params{'type'} //= $self->_collation_type
4814 0 5 0 $params{'alternate'} //= $self->_collation_alternate
4815 0 5 0 $params{'backwards'} //= $self->_collation_backwards
4816 0 5 0 $params{'case_level'} //= $self->_collation_case_level
4817 0 5 0 $params{'case_ordering'} //= $self->_collation_case_ordering
4818 0 5 0 $params{'normalization'} //= $self->_collation_normalization
4819 0 5 0 $params{'numeric'} //= $self->_collation_numeric
4820 0 5 0 $params{'reorder'} //= $self->_collation_reorder
4821 4 1 0 $params{'strength'} //= $self->_collation_strength
4822 0 5 0 $params{'max_variable'} //= $self->_collation_max_variable