Condition Coverage

blib/lib/Locale/CLDR.pm
Criterion Covered Total %
condition 80 226 35.4


and 3 conditions

line !l l&&!r l&&r condition
1211 82 20 0 @_ > 1 and ref $_[-1] eq 'HASH'
1215 21 0 81 1 == @_ and not ref $_[0]
1245 96 0 6 defined $args{'extensions'} and not ref $args{'extensions'}
1715 1 3 3 ref $name and not $name->script_id
1783 2 7 0 ref $name and not $name->region_id
1892 0 0 3 defined $return and length $return
2173 41 0 119 !$grapheme_split && length $gc
2411 0 0 1 $outer > -1 and $inner > -1
0 0 1 $outer > -1 and $inner > -1 and $outer < $inner
2564 732 0 6 not $format and my($dividend, $divisor) = $what =~ /^(.+)-per-(.+)$/u
2898 0 0 0 length $rule->{'before'} and not $text =~ /$rule->{'before'}\G/u
4277 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 'account'
4612 8 0 0 not length $method and length $text
4780 0 0 0 $type ne 'standard' and not $override
4792 0 0 0 ref $self->extensions and $self->extensions->{'co'}
4806 0 0 0 ref $self->extensions and $self->extensions->{'ka'}
4820 0 0 0 ref $self->extensions and $self->extensions->{'kb'}
4834 0 0 0 ref $self->extensions and $self->extensions->{'kc'}
4848 0 0 0 ref $self->extensions and $self->extensions->{'kf'}
4862 0 0 0 ref $self->extensions and $self->extensions->{'kk'}
4876 0 0 0 ref $self->extensions and $self->extensions->{'kn'}
4890 0 0 0 ref $self->extensions and $self->extensions->{'kr'}
4895 0 0 0 ref($collation_reorder = $bundle->collation_reorder) and @$collation_reorder
4904 0 0 0 ref $self->extensions && $self->extensions->{'ks'}
4924 0 0 0 ref $self->extensions and $self->extensions->{'kv'}

or 2 conditions

line l !l condition
615 0 0 $self->likely_subtag->script || ''
642 0 0 $self->likely_subtag->region || ''
1259 98 4 $args{'language_id'} //= 'und'
1516 0 0 $self->language_name($for) // ''
1863 2 1 $variant // ''
1882 1 2 $key_aliases{$key} // ''
1883 2 1 $key_names{$key} // ''
1915 1 2 $key_aliases{$key} // ''
1916 2 1 $key_names{$key} // ''
2400 12 0 $quote{$_} //= ''
2455 1 0 $self->region_id || '001'
2477 1 0 $self->region_id || '001'
2523 494 244 $type //= 'long'
2579 6 0 $type //= 'long'
2794 0 0 $params{'variant'} // 'Any'
2795 0 0 $params{'text'} // ''
3240 0 3 $type //= 'default'
3676 0 0 $format_data->{$format} // ''
4585 9 0 $text //= ''
4669 0 0 $type //= 'ordinal'
4670 0 0 $gender //= 'neuter'
4786 0 0 $override || []
4800 0 0 $collation_type || 'standard'
4814 0 0 $collation_alternate || 'noignore'
4828 0 0 $collation_backwards || 'noignore'
4842 0 0 $collation_case_level || 'false'
4856 0 0 $collation_case_ordering || 'false'
4870 0 0 $collation_normalization || 'true'
4884 0 0 $collation_numeric || 'false'
4898 0 0 $collation_reorder || []
4918 0 0 $collation_strength || 3
4932 0 0 $collation_max_variable || 3

or 3 conditions

line l !l&&r !l&&!r condition
672 0 96 237 $path[$i] eq 'und' or $path[$i] eq 'Any'
841 0 0 0 $for //= $self
1419 0 2 0 $self->region_id || $self->likely_subtag->region_id
0 2 0 $region //= $self->region_id || $self->likely_subtag->region_id
1602 5 1 0 $name //= $self
1644 6 2 0 $name //= $self
1709 6 1 0 $name //= $self
1777 8 1 0 $name //= $self
1845 6 1 0 $name //= $self
1885 1 0 2 exists $valid_keys{$key} or exists $valid_keys{$alias}
0 0 2 exists $valid_keys{$key} or exists $valid_keys{$alias} or exists $valid_keys{$name}
1889 2 1 0 $return //= $bundle->display_name_key->{$alias}
1890 3 0 0 $return //= $bundle->display_name_key->{$name}
1895 0 0 0 $key_names{$name} || $key_names{$alias} || $key_names{$key} || $key
1918 1 0 2 exists $valid_keys{$key} or $valid_keys{$alias}
0 0 2 exists $valid_keys{$key} or $valid_keys{$alias} or $valid_keys{$name}
1923 2 0 1 $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}
1988 3 0 0 $locale //= $self
2411 2 0 1 $inner == -1 or $outer > -1 and $inner > -1 and $outer < $inner
2792 0 0 0 $params{'from'} // $self
2806 0 0 0 $transforms->{$variant}{$from}{$to} //= $package->new
3251 3 0 0 $day_period ||= $time < 1200 ? 'am' : 'pm'
3948 0 4 0 $self->region_id || $self->likely_subtag->region_id
0 4 0 $region_id //= $self->region_id || $self->likely_subtag->region_id
4282 2 20 0 $default_currency_format //= $self->default_currency_format
4397 0 9 0 $region_id //= $self->region_id
4428 17 0 0 $currency_id //= $self->default_currency