Branch Coverage

blib/lib/Proc/Topus.pm
Criterion Covered Total %
branch 48 56 85.7


line true false branch
27 4 183 unless defined $workers and keys %$workers > 0
37 0 177 unless defined $pid
42 146 31 if $pid != 0
48 3 28 if ($$config{'setsid'})
50 0 3 unless POSIX::setsid()
55 4 27 if ref $loader eq 'CODE'
62 0 50 unless defined $pid
66 30 20 if $pid != 0
72 18 2 unless ref $main eq 'CODE'
92 120 25 unless ref $main eq 'CODE'
98 179 14 if (scalar @_ == 1) { }
2 12 elsif (@_ % 2) { }
99 4 175 unless (defined $_[0] and ref $_[0] eq 'HASH')
116 139 44 unless defined $_conduit
119 163 20 unless defined $_autoflush
127 4 179 unless defined $count and $count > 0
131 139 40 unless defined $conduit
135 165 14 unless defined $autoflush
148 282 72 if ($conduit eq 'socketpair') { }
70 2 elsif ($conduit eq 'pipe') { }
149 0 282 unless socketpair my $ps, my $ws, 1, 1, 0
157 0 70 unless pipe my $pr, my $ww
159 0 70 unless pipe my $wr, my $pw
172 46 306 unless shift()
197 0 146 if $pid == -1
202 0 146 unless defined $name
205 1 145 unless $rc == 0
209 1 145 if $errors