Condition Coverage

blib/lib/Locale/CLDR.pm
Criterion Covered Total %
condition 134 316 42.4


and 3 conditions

line !l l&&!r l&&r condition
801 0 0 0 defined $_ && $_ eq 'Any'
802 0 0 0 $script and $script eq "und"
0 0 0 $script and $script eq "und" and not $region
1579 2 9 0 not @values and grep {$_ eq $value;} @extension_keys
1606 106 23 0 @_ > 1 and ref $_[-1] eq "HASH"
1610 31 0 98 1 == @_ and not ref $_[0]
1622 63 34 1 not defined $script and length $language == 4
97 0 1 not defined $script and length $language == 4 and lc $language ne "root"
1666 31 7 220 defined $_ and $_ eq ""
2119 1 3 3 ref $name and not $name->script_id
2187 2 7 0 ref $name and not $name->region_id
2296 0 0 3 defined $return and length $return
2577 41 0 119 !$grapheme_split && length $gc
2815 0 0 1 $outer > -1 and $inner > -1
0 0 1 $outer > -1 and $inner > -1 and $outer < $inner
2978 732 0 6 not $format and my($dividend, $divisor) = $what =~ /^(?:[^\-]+-)?(.+)-per-(.+)$/u
3319 0 0 0 length $rule->{'before'} and not $text =~ /$rule->{'before'}\G/u
4680 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"
4708 11 11 0 $default_currency_format eq "accounting" and not $format->{$default_numbering_system}{'pattern'}{'default'}{'accounting'}{'positive'}
5018 8 0 0 not length $method and length $text
5185 0 0 0 $type ne "standard" and not $override
5197 5 0 0 ref $self->extensions and $self->extensions->{'co'}
5211 5 0 0 ref $self->extensions and $self->extensions->{'ka'}
5225 5 0 0 ref $self->extensions and $self->extensions->{'kb'}
5239 5 0 0 ref $self->extensions and $self->extensions->{'kc'}
5253 5 0 0 ref $self->extensions and $self->extensions->{'kf'}
5267 5 0 0 ref $self->extensions and $self->extensions->{'kk'}
5281 5 0 0 ref $self->extensions and $self->extensions->{'kn'}
5295 5 0 0 ref $self->extensions and $self->extensions->{'kr'}
5300 0 0 0 ref($collation_reorder = $bundle->collation_reorder) and @$collation_reorder
5309 1 0 0 ref $self->extensions && $self->extensions->{'ks'}
5329 5 0 0 ref $self->extensions and $self->extensions->{'kv'}

or 2 conditions

line l !l condition
739 0 0 state $locales //= []
773 0 0 $Locale::CLDR::a->[1][2] // ""
0 0 $Locale::CLDR::b->[1][2] // ""
0 0 $Locale::CLDR::a->[1][1] // ""
0 0 $Locale::CLDR::b->[1][1] // ""
881 0 0 $self->likely_subtag->script || ''
908 0 0 $self->likely_subtag->region || ''
1560 98 31 shift() // ""
1628 249 339 $_ //= ""
1662 117 12 $args{'language_id'} ||= "und"
1812 96 12 $self->$method // ""
1920 0 0 $self->language_name($for) // ""
2267 2 1 $variant // ""
2286 1 2 $key_aliases{$key} // ""
2287 2 1 $key_names{$key} // ""
2319 1 2 $key_aliases{$key} // ""
2320 2 1 $key_names{$key} // ""
2804 12 0 $quote{$_} //= ""
2859 1 0 $self->region_id || '001'
2881 1 0 $self->region_id || '001'
2937 494 244 $type //= "long"
2993 6 0 $type //= "long"
3210 0 0 $params{'variant'} // "Any"
3211 0 0 $params{'text'} // ""
3669 0 3 $type //= "default"
4105 0 0 $format_data->{$format} // ""
4990 9 0 $text //= ""
4998 2 6 $raw //= ""
5074 0 0 $type //= "ordinal"
5075 0 0 $gender //= "neuter"
5191 0 0 $override || []
5205 0 5 $collation_type || 'standard'
5219 0 5 $collation_alternate || 'noignore'
5233 0 5 $collation_backwards || 'noignore'
5247 0 5 $collation_case_level || 'false'
5261 0 5 $collation_case_ordering || 'false'
5275 0 5 $collation_normalization || 'true'
5289 0 5 $collation_numeric || 'false'
5303 5 0 $collation_reorder || []
5323 0 1 $collation_strength || 3
5337 0 5 $collation_max_variable || 3

or 3 conditions

line l !l&&r !l&&!r condition
750 0 0 0 $self->script_id || ()
0 0 0 $self->region_id || ()
773 0 0 0 $Locale::CLDR::a->[1][0] cmp $Locale::CLDR::b->[1][0] or ($Locale::CLDR::a->[1][1] // "") cmp ($Locale::CLDR::b->[1][1] // "")
938 0 118 302 $path[$i] eq "und" or $path[$i] eq "Any"
1107 0 0 0 $for //= $self
1589 0 2 0 $next_key || $value
1826 0 2 0 $self->region_id || $self->likely_subtag->region_id
0 2 0 $region //= $self->region_id || $self->likely_subtag->region_id
1894 0 0 0 $english //= "Locale::CLDR"->new("en_Latn_US")
2006 5 1 0 $name //= $self
2048 6 2 0 $name //= $self
2050 1 2 0 $self->language_aliases->{$name} // $name
2113 6 1 0 $name //= $self
2181 8 1 0 $name //= $self
2249 6 1 0 $name //= $self
2289 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}
2293 2 1 0 $return //= $bundle->display_name_key->{$alias}
2294 3 0 0 $return //= $bundle->display_name_key->{$name}
2299 0 0 0 $key_names{$name} || $key_names{$alias} || $key_names{$key} || $key
2322 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}
2327 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}
2394 3 0 0 $locale //= $self
2815 2 1 0 $inner == -1 or $outer > -1 and $inner > -1 and $outer < $inner
3208 0 0 0 $params{'from'} // $self
3227 0 0 0 $transforms->{$variant}{$from}{$to} //= $package->new
3462 180 96 0 $result->[$count] //= $results->[$count]
3680 3 0 0 $day_period ||= $time < 1200 ? "am" : "pm"
4357 0 4 0 $self->region_id || $self->likely_subtag->region_id
0 4 0 $region_id //= $self->region_id || $self->likely_subtag->region_id
4685 2 20 0 $default_currency_format //= $self->default_currency_format
4802 0 9 0 $region_id //= $self->region_id
4833 17 0 0 $currency_id //= $self->default_currency
5161 0 5 0 $params{'type'} //= $self->_collation_type
5162 0 5 0 $params{'alternate'} //= $self->_collation_alternate
5163 0 5 0 $params{'backwards'} //= $self->_collation_backwards
5164 0 5 0 $params{'case_level'} //= $self->_collation_case_level
5165 0 5 0 $params{'case_ordering'} //= $self->_collation_case_ordering
5166 0 5 0 $params{'normalization'} //= $self->_collation_normalization
5167 0 5 0 $params{'numeric'} //= $self->_collation_numeric
5168 0 5 0 $params{'reorder'} //= $self->_collation_reorder
5169 4 1 0 $params{'strength'} //= $self->_collation_strength
5170 0 5 0 $params{'max_variable'} //= $self->_collation_max_variable