Condition Coverage

blib/lib/Proc/Background.pm
Criterion Covered Total %
condition 19 52 36.5


and 3 conditions

line !l l&&!r l&&r condition
64 0 0 101 -f $p and -x _
76 0 0 0 -f $p2 and -x _
88 18 0 0 -f $p2 and -x _
121 0 84 24 @_ and ref $_[0] eq "HASH"
143 0 0 14 ref $cmd eq "ARRAY" and defined $cmd->[0]
0 0 14 ref $cmd eq "ARRAY" and defined $cmd->[0] and length $cmd->[0]
0 0 0 not ref $cmd and defined $cmd
0 0 0 not ref $cmd and defined $cmd and length $cmd
185 0 0 2 @_ > 1 and ($newval xor $self->{'_die_upon_destroy'})
307 37 0 0 $self->{'_autodie'} and not $self->{'_os_obj'}
362 13 0 30 $delay > 0 and defined $proc->{'_os_obj'}

or 3 conditions

line l !l&&r !l&&!r condition
143 14 0 0 ref $cmd eq "ARRAY" and defined $cmd->[0] and length $cmd->[0] or not ref $cmd and defined $cmd and length $cmd
155 89 0 5 @_ > 1 || defined $options->{'exe'}
167 0 2 85 $options->{'autoterminate'} or $options->{'die_upon_destroy'}
244 87 0 117 $result == 0 or $result == 1
355 34 0 0 $timeout =~ /^\d+(?:\.\d*)?$/ or $timeout =~ /^\.\d+$/

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
185 0 2 0 0 $newval xor $self->{'_die_upon_destroy'}