Condition Coverage

lib/Locale/Maketext/Utils.pm
Criterion Covered Total %
condition 76 157 48.4


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 4 defined $handle and defined $phrase
367 0 0 0 not $phrase =~ /^_/s and $$h_r{'_AUTO'}
440 4 0 1 wantarray && $Locales::VERSION > 0.06
441 4 0 1 wantarray && $Locales::VERSION > 0.09
483 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}
511 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}
637 3 1 3 m[([^/]+)\.pm$] && $1 ne 'Utils'
728 4 1 3 $num == 0 and $spec_zero
1066 0 0 0 defined $is_defined_but_false and not $value
1080 2 1 1 not defined $boolean and defined $null
1121 12 0 136 defined $string and $string ne ''
12 136 0 defined $string and $string ne '' and $string =~ tr/(//
1445 2 2 2 $orig ne $output_config{'plain'} && $output_config{'plain'} =~ /\Q$url\E/
1471 17 0 2 exists $output_config{'_type'} && $output_config{'_type'} eq 'offsite'
1536 5 1 15 defined $context && exists $contexts{$context}

or 2 conditions

line l !l condition
59 31 20 CORE::join(',', @langtags) || 'no_args'
198 1 2 $$lh{'fallback_locale'} || 'en'
632 1 1 $lh->get_base_class_dir || (return)
881 0 0 $current_type ||= 'hour'
904 1 1 $2 || 'UTC'
0 0 $_[0] || 'UTC'
991 6 4 $bytes ||= 0
1425 31 4 $url ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
73 5 15 0 $tag ||= $lh->get_language_tag
76 0 0 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
437 3 2 0 $$lh{'Locales.pm'}{'_main_'} ||= $lh->get_locales_obj
584 231 13 0 ref $lh || $lh
722 13 2 0 $$handle{'Locales.pm'}{'_main_'} ||= $handle->get_locales_obj
744 0 0 0 $$handle{'Locales.pm'}{'_main_'} ||= $handle->get_locales_obj
758 32 1 0 $$handle{'Locales.pm'}{'_main_'} ||= $handle->get_locales_obj
797 4 0 0 $$lh{'Locales.pm'}{'_main_'} ||= $lh->get_locales_obj
806 0 0 0 $$lh{'Locales.pm'}{'_main_'} ||= $lh->get_locales_obj
813 2 0 0 $$lh{'Locales.pm'}{'_main_'} ||= $lh->get_locales_obj
821 0 0 0 $$lh{'Locales.pm'}{'_main_'} ||= $lh->get_locales_obj
841 0 0 0 shift() || $def_sep
904 1 5 9 !defined($_[0]) || $_[0] eq ''
928 12 3 0 $$dt{'locale'}->format_for($format) || $format || $$dt{'locale'}->date_format_long
1002 7 3 0 $space ||= $lh->output_nbsp
1251 2 0 15 $chr_num == 34 || $chr_num == 147 || $chr_num == 148
2 0 8 $chr_num == 39 || $chr_num == 145 || $chr_num == 146
1353 2 1 7 not defined $alt or $alt eq ''
1440 6 0 0 $output_config{'plain'} ||= $url
1459 8 7 0 $url_text || $url
4 15 0 $output_config{'html'} ||= $url_text || $url