Condition Coverage

blib/lib/Proc/Daemon.pm
Criterion Covered Total %
condition 22 56 39.2


and 3 conditions

line !l l&&!r l&&r condition
91 0 0 24 ref $self && eval { do { $self->isa('Proc::Daemon') } }
150 0 14 10 defined $pid and $pid == 0
216 0 0 10 defined $pid and $pid == 0
445 0 0 0 $loop < 6 and $! == 11 || $! == 12
531 0 0 4 $killed and $pidfile
587 0 0 4 $self->{'pid_file'} and open my $FH_MEMORY, '<', $self->{'pid_file'}
591 0 0 4 $pid and $pid =~ /^(\d+)$/
601 4 0 0 not $pid and $self->{'exec_command'}

or 2 conditions

line l !l condition
246 0 10 $self->{'child_STDIN'} || '
247 10 0 $self->{'child_STDOUT'} || '+>/dev/null'
248 10 0 $self->{'child_STDERR'} || '+>/dev/null'
288 0 0 $pid ||= ''
361 24 0 $self->{'work_dir'} ||= '/'
376 14 10 $self->{'file_umask'} ||= 54
411 0 18 $self->{'memory'}{"${key}_num"} ||= 0
464 0 0 shift() || 64
519 0 4 shift() || 'KILL'
559 124 4 shift() || ''

or 3 conditions

line l !l&&r !l&&!r condition
105 24 0 0 open $FH_MEMORY, '+>', undef or $self->{'pid_file'}
399 0 54 18 $var =~ s[^\./][] or not $var =~ m[/]
445 0 0 0 $! == 11 || $! == 12
464 0 0 10 !defined($openmax) || $openmax < 0