Condition Coverage

lib/Locale/Maketext/Utils.pm
Criterion Covered Total %
condition 84 165 50.9


and 3 conditions

line !l l&&!r l&&r condition
155 2 0 1 not @args and ref $phrase eq 'ARRAY'
276 0 0 0 defined $/ && $/
283 0 0 1 defined $/ && $/
347 0 0 6 defined $handle and defined $phrase
367 0 4 0 not $phrase =~ /^_/s and $h_r->{'_AUTO'}
441 4 0 1 wantarray && $Locales::VERSION > 0.06
442 4 0 1 wantarray && $Locales::VERSION > 0.09
484 0 0 0 $lh->{'add_lex_hash_silent_if_already_added'} and exists $ref->{'hashes'}
0 0 0 $lh->{'add_lex_hash_silent_if_already_added'} and exists $ref->{'hashes'} and exists $ref->{'hashes'}{$name}
512 0 0 0 $lh->{'add_lex_hash_silent_if_already_added'} and exists $ref->{'hashes'}
0 0 0 $lh->{'add_lex_hash_silent_if_already_added'} and exists $ref->{'hashes'} and exists $ref->{'hashes'}{$name}
638 3 1 3 m[([^/]+)\.pm$] && $1 ne 'Utils'
730 4 1 3 $num == 0 and $spec_zero
1068 0 0 0 defined $is_defined_but_false and not $value
1082 2 1 1 not defined $boolean and defined $null
1123 12 0 136 defined $string and $string ne ''
12 131 5 defined $string and $string ne '' and $string =~ tr/(//
1447 2 2 2 $orig ne $output_config{'plain'} && $output_config{'plain'} =~ /\Q$url\E/
1474 17 0 2 exists $output_config{'_type'} && $output_config{'_type'} eq 'offsite'
1540 5 16 0 defined $context && exists $contexts{$context}

or 2 conditions

line l !l condition
59 32 20 CORE::join(',', @langtags) || 'no_args'
198 1 2 $lh->{'fallback_locale'} || 'en'
633 1 1 $lh->get_base_class_dir || (return)
762 24 11 $handle->{'Locales.pm'}{'_main_'}->get_formatted_decimal($num, $max_decimal_places) || 0
883 0 0 $current_type ||= 'hour'
906 1 1 $2 || 'UTC'
0 0 $_[0] || 'UTC'
993 6 4 $bytes ||= 0
1427 31 4 $url ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
73 7 15 0 $tag ||= $lh->get_language_tag
82 0 1 0 'Locales'->new($tag) || ($tag ne substr($tag, 0, 2) ? 'Locales'->new(substr($tag, 0, 2)) : '') || ($lh->{'fallback_locale'} ? 'Locales'->new($lh->{'fallback_locale'}) || ($lh->{'fallback_locale'} ne substr($lh->{'fallback_locale'}, 0, 2) ? 'Locales'->new(substr($lh->{'fallback_locale'}, 0, 2)) : '') : '') || 'Locales'->new('en')
178 17 82 0 $lh->{'cache'}{'makethis'}{$phrase} ||= $lh->_compile($phrase)
198 1 3 0 $lh->{'cache'}{'makethis_base'} ||= $lh->get_base_class->get_handle($lh->{'fallback_locale'} || 'en')
290 0 0 0 $tag ||= $lh->get_language_tag
304 0 0 0 $raw_cldr ||= $lh->get_language_tag_character_orientation
322 0 0 0 $_[1] || $_[0]{'fallback_locale'} || $_[0]->get_language_tag
330 0 0 0 $_[1] || $_[0]{'fallback_locale'} || $_[0]->get_language_tag
399 2 0 4 not defined $value or $value eq ''
438 3 2 0 $lh->{'Locales.pm'}{'_main_'} ||= $lh->get_locales_obj
585 241 13 0 ref $lh || $lh
651 7 8 0 $tag || $lh->get_language_tag
724 13 2 0 $handle->{'Locales.pm'}{'_main_'} ||= $handle->get_locales_obj
746 0 0 0 $handle->{'Locales.pm'}{'_main_'} ||= $handle->get_locales_obj
760 34 1 0 $handle->{'Locales.pm'}{'_main_'} ||= $handle->get_locales_obj
799 4 0 0 $lh->{'Locales.pm'}{'_main_'} ||= $lh->get_locales_obj
808 0 0 0 $lh->{'Locales.pm'}{'_main_'} ||= $lh->get_locales_obj
815 2 0 0 $lh->{'Locales.pm'}{'_main_'} ||= $lh->get_locales_obj
823 0 0 0 $lh->{'Locales.pm'}{'_main_'} ||= $lh->get_locales_obj
843 0 0 0 shift() || $def_sep
906 1 5 9 !defined($_[0]) || $_[0] eq ''
930 12 3 0 $dt->{'locale'}->format_for($format) || $format || $dt->{'locale'}->date_format_long
1004 7 3 0 $space ||= $lh->output_nbsp
1253 2 0 15 $chr_num == 34 || $chr_num == 147 || $chr_num == 148
2 0 8 $chr_num == 39 || $chr_num == 145 || $chr_num == 146
1355 2 1 7 not defined $alt or $alt eq ''
1442 6 0 0 $output_config{'plain'} ||= $url
1461 8 7 0 $url_text || $url
4 15 0 $output_config{'html'} ||= $url_text || $url