Condition Coverage

blib/lib/IO/Prompt/I18N.pm
Criterion Covered Total %
condition 0 38 0.0


and 3 conditions

line !l l&&!r l&&r condition
31 0 0 0 defined $default && $opts->{'show_default'}
72 0 0 0 $ENV{'LANG'} and $ENV{'LANG'} =~ /^([a-z]{2})/
0 0 0 $ENV{'LANG'} and $ENV{'LANG'} =~ /^([a-z]{2})/ and $supported_langs->{$1}
0 0 0 $ENV{'LANGUAGE'} and $ENV{'LANGUAGE'} =~ /^([a-z]{2})/
0 0 0 $ENV{'LANGUAGE'} and $ENV{'LANGUAGE'} =~ /^([a-z]{2})/ and $supported_langs->{$1}
108 0 0 0 defined $opts->{'default'} && !$opts->{'default'}

or 2 conditions

line l !l condition
19 0 0 $text //= "Enter value"
20 0 0 $opts //= {}
31 0 0 defined $default && $opts->{'show_default'} // 1
63 0 0 $opts //= {}

or 3 conditions

line l !l&&r !l&&!r condition
71 0 0 0 $opts->{'lang'} //= do { if ($ENV{'LANG'} and $ENV{'LANG'} =~ /^([a-z]{2})/ and $supported_langs->{$1}) { $1; } elsif ($ENV{'LANGUAGE'} and $ENV{'LANGUAGE'} =~ /^([a-z]{2})/ and $supported_langs->{$1}) { $1; } else { "en"; } }
85 0 0 0 $text //= $lang->{'text'}
86 0 0 0 $opts->{'yes_words'} //= $lang->{'yes_words'}
87 0 0 0 $opts->{'no_words'} //= $lang->{'no_words'}