Branch Coverage

lib/Pcore/Util/PM.pm
Criterion Covered Total %
branch 3 40 7.5


line true false branch
13 5 0 unless ($Pcore::Util::PM::MSWIN)
14 0 5 if (defined $args{'gid'})
15 0 0 $args{'gid'} =~ /\A\d+\z/msu ? :
17 0 0 unless defined $gid
19 0 0 unless POSIX::setgid($gid)
22 0 5 if (defined $args{'uid'})
23 0 0 $args{'uid'} =~ /\A\d+\z/msu ? :
25 0 0 unless defined $uid
27 0 0 unless POSIX::setuid($uid)
37 0 0 if $daemonized
41 0 0 unless ($Pcore::Util::PM::MSWIN)
42 0 0 if fork
44 0 0 unless open STDIN, '+<', '/dev/null'
45 0 0 unless open STDOUT, '>&STDIN'
46 0 0 unless open STDERR, '>&STDIN'
48 0 0 unless open $Pcore::Util::PM::STDOUT_UTF8, '>&STDIN'
49 0 0 unless open $Pcore::Util::PM::STDERR_UTF8, '>&STDIN'
51 0 0 unless POSIX::setsid()
60 0 0 if ($Pcore::Util::PM::MSWIN) { }
64 0 0 $> == 0 ? :