Branch Coverage

blib/lib/Doit/Locale.pm
Criterion Covered Total %
branch 1 36 2.7


line true false branch
29 0 1 if (($osr->{'ID'} || '') eq "fedora" or ($osr->{'ID_LIKE'} || '') =~ /\bfedora\b/)
38 0 0 if (ref $locale eq 'ARRAY') { }
47 0 0 unless open my $fh, "-|", "locale", "-a"
51 0 0 if ($locale{$_})
55 0 0 unless close $fh
60 0 0 if (&$is_locale_present())
66 0 0 if (-x "/usr/sbin/locale-gen" and not -e "/etc/locale.gen")
73 0 0 if (-x "/usr/bin/localedef" and -e "/etc/redhat-release")
78 0 0 if ($osr->{'ID'} eq "fedora" and $osr->{'VERSION_ID'} >= 28 or $osr->{'ID'} eq "centos" and $osr->{'VERSION_ID'} >= 8 or $osr->{'ID'} eq "rocky" and $osr->{'VERSION_ID'} >= 8)
88 0 0 if ($use_glibc_langpack)
89 0 0 if ((keys %locale)[0] =~ /^([^_]+)/)
93 0 0 unless ($@)
100 0 0 if (my($lang_country, $charset) = $try_locale =~ /^(.*)\.(.*)$/) { }
103 0 0 unless ($@)
107 0 0 if (&$is_locale_present())
124 0 0 if (-e "/etc/locale.gen")
131 0 0 unless ($changes)
138 0 0 if ($^O eq "darwin")