Branch Coverage

blib/lib/Doit/Locale.pm
Criterion Covered Total %
branch 0 34 0.0


line true false branch
28 0 0 if (ref $locale eq 'ARRAY') { }
37 0 0 unless open my $fh, '-|', 'locale', '-a'
41 0 0 if ($locale{$_})
45 0 0 unless close $fh
50 0 0 if (&$is_locale_present())
56 0 0 if (-x '/usr/sbin/locale-gen' and not -e '/etc/locale.gen')
63 0 0 if (-e '/etc/locale.gen')
70 0 0 unless ($changes)
79 0 0 if (-x '/usr/bin/localedef' and -e '/etc/redhat-release')
82 0 0 if (open my $fh, '/etc/redhat-release')
84 0 0 if ($line =~ /^Fedora release (\d+) / and $1 >= 28 or $line =~ /^CentOS Linux release (\d+)/ and $1 >= 8)
93 0 0 if ($use_glibc_langpack)
94 0 0 if ((keys %locale)[0] =~ /^([^_]+)/)
99 0 0 unless ($@)
106 0 0 if (my($lang_country, $charset) = $try_locale =~ /^(.*)\.(.*)$/) { }
109 0 0 unless ($@)
113 0 0 if (&$is_locale_present())