Branch Coverage

blib/lib/MCE/Relay.pm
Criterion Covered Total %
branch 62 112 55.3


line true false branch
34 1 10 if $_imported++
36 10 0 if ($INC{'MCE.pm'}) { }
85 16 0 exists $_MCE->{'user_tasks'} ? :
88 16 0 if (defined $_MCE->{'init_relay'})
91 0 12 if $_ref ne "" and $_ref ne "HASH" and $_ref ne "ARRAY"
99 4 12 if (ref $_MCE->{'init_relay'} eq '') { }
5 7 elsif (ref $_MCE->{'init_relay'} eq 'HASH') { }
7 0 elsif (ref $_MCE->{'init_relay'} eq 'ARRAY') { }
122 16 0 if (defined $_MCE->{'init_relay'})
128 0 16 if $^O eq "MSWin32"
132 12 4 if (chop $_ret) { }
173 0 16 ref $x ? :
176 0 16 if $self->{'_wid'}
180 16 0 if (exists $MCE::RLA->{$_caller})
181 4 12 if (ref $MCE::RLA->{$_caller} eq '') { }
5 7 elsif (ref $MCE::RLA->{$_caller} eq 'HASH') { }
7 0 elsif (ref $MCE::RLA->{$_caller} eq 'ARRAY') { }
200 0 24 ref $x ? :
203 0 24 unless defined $self->{'init_relay'}
205 0 24 unless $self->{'_wid'}
207 0 24 if $self->{'_task_id'} > 0
211 0 24 if defined $\
212 0 24 if $/ ne $LF
217 12 12 if $_nxt == $self->{'max_workers'}
222 0 24 if $^O eq "MSWin32"
227 8 16 if ($_ref == 0) { }
8 8 elsif ($_ref == 1) { }
8 0 elsif ($_ref == 2) { }
229 0 8 unless defined wantarray
234 0 8 unless defined wantarray
239 0 8 unless defined wantarray
250 0 26 if (ref $_[0] eq 'CODE') { }
253 0 26 ref $x ? :
258 0 26 unless defined $self->{'init_relay'}
260 0 26 unless $self->{'_wid'}
262 0 26 if $self->{'_task_id'} > 0
264 0 26 if (ref $_code ne 'CODE') { }
265 0 0 if defined $_code
272 0 26 if defined $\
273 0 26 if $/ ne $LF
278 13 13 if $_nxt == $self->{'max_workers'}
282 24 2 if (exists $self->{'_rla_data'}) { }
284 24 0 if ref $_code eq "CODE"
286 8 16 if (ref $_ eq '') { }
8 8 elsif (ref $_ eq 'HASH') { }
8 0 elsif (ref $_ eq 'ARRAY') { }
304 0 2 if $^O eq "MSWin32"
309 2 0 if ($_ref == 0) { }
0 0 elsif ($_ref == 1) { }
0 0 elsif ($_ref == 2) { }
311 2 0 if ref $_code eq "CODE"
318 2 0 unless defined wantarray
323 0 0 if ref $_code eq "CODE"
330 0 0 unless defined wantarray
335 0 0 if ref $_code eq "CODE"
342 0 0 unless defined wantarray