Branch Coverage

blib/lib/MCE/Shared/Queue.pm
Criterion Covered Total %
branch 31 242 12.8


line true false branch
54 0 0 if $INC{'threads.pm'}
59 0 26 $_tid ? :
63 26 0 if ($_Q->{'_init_pid'} eq $_pid)
84 0 36 unless exists $_valid_fields_new{$_p}
94 0 26 defined $_argv{'await'} ? :
95 10 16 defined $_argv{'porder'} ? :
96 26 0 defined $_argv{'type'} ? :
98 0 26 if (exists $_argv{'queue'}) { }
100 0 0 if ref $_argv{'queue'} ne "ARRAY"
109 0 26 $_tid ? :
113 0 26 if $_Q->{'_await'}
116 8 0 if $_reset_flg and $INC{'MCE/Shared/Server.pm'}
151 0 0 unless (exists $_Q->{'_ended'})
164 0 0 unless scalar @_
166 0 0 if (exists $_Q->{'_ended'})
171 0 0 if ($_Q->{'_dsem'})
174 0 0 unless $_Q->{'_dsem'}
188 0 0 if not &looks_like_number($_p) or int $_p != $_p
191 0 0 unless scalar @_
193 0 0 if (exists $_Q->{'_ended'})
198 0 0 if ($_Q->{'_dsem'})
201 0 0 unless $_Q->{'_dsem'}
217 0 0 if (defined $_cnt and $_cnt ne '1') { }
218 0 0 if not &looks_like_number($_cnt) or int $_cnt != $_cnt or $_cnt < 1
223 0 0 if ($_pending < $_cnt and scalar @{$_Q->{'_heap'};})
228 0 0 if $_pending < $_cnt
233 0 0 @{$_Q->{'_datq'};} || @{$_Q->{'_heap'};} ? :
237 0 0 if scalar @_items
238 0 0 if $_has_data
239 0 0 if exists $_Q->{'_ended'}
252 0 0 if (defined $_cnt and $_cnt ne 1)
253 0 0 if not &looks_like_number($_cnt) or int $_cnt != $_cnt or $_cnt < 1
258 0 0 if ($_pending < $_cnt and scalar @{$_Q->{'_heap'};})
264 0 0 if $_pending < $_cnt
271 0 0 defined $_buf ? :
280 0 0 if (scalar @{$_Q->{'_heap'};})
287 0 0 $_pending ? :
0 0 exists $_Q->{'_ended'} ? :
296 0 0 if not &looks_like_number($_i) or int $_i != $_i
299 0 0 unless scalar @_
301 0 0 if (exists $_Q->{'_ended'})
306 0 0 if ($_Q->{'_dsem'})
309 0 0 unless $_Q->{'_dsem'}
313 0 0 if (abs $_i > scalar @{$_Q->{'_datq'};}) { }
314 0 0 if ($_i >= 0) { }
315 0 0 if ($_Q->{'_type'}) { }
322 0 0 if ($_Q->{'_type'}) { }
330 0 0 unless ($_Q->{'_type'})
332 0 0 $_i >= 0 ? :
346 0 0 if not &looks_like_number($_p) or int $_p != $_p
348 0 0 if not &looks_like_number($_i) or int $_i != $_i
351 0 0 unless scalar @_
353 0 0 if (exists $_Q->{'_ended'})
358 0 0 if ($_Q->{'_dsem'})
361 0 0 unless $_Q->{'_dsem'}
365 0 0 if (exists $_Q->{'_datp'}{$_p} and scalar @{$_Q->{'_datp'}{$_p};}) { }
367 0 0 if (abs $_i > scalar @{$_Q->{'_datp'}{$_p};}) { }
368 0 0 if ($_i >= 0) { }
369 0 0 if ($_Q->{'_type'}) { }
376 0 0 if ($_Q->{'_type'}) { }
384 0 0 unless ($_Q->{'_type'})
386 0 0 $_i >= 0 ? :
405 0 0 if ($_i) { }
406 0 0 if not &looks_like_number($_i) or int $_i != $_i
411 0 0 if abs $_i > scalar @{$_Q->{'_datq'};}
413 0 0 unless ($_Q->{'_type'})
415 0 0 $_i >= 0 ? :
428 0 0 if ($_i) { }
429 0 0 if not &looks_like_number($_i) or int $_i != $_i
434 0 0 if not &looks_like_number($_p) or int $_p != $_p
437 0 0 unless exists $_Q->{'_datp'}{$_p}
438 0 0 if abs $_i > scalar @{$_Q->{'_datp'}{$_p};}
440 0 0 unless ($_Q->{'_type'})
442 0 0 $_i >= 0 ? :
455 0 0 if ($_i) { }
456 0 0 if not &looks_like_number($_i) or int $_i != $_i
461 0 0 if abs $_i > scalar @{$_Q->{'_heap'};}
483 0 0 if (not exists $_Q->{'_datp'}{$_p} or @{$_Q->{'_datp'}{$_p};} == 0)
485 0 0 do { $_Q->{'_porder'} } ? :
0 0 scalar @{$_Q->{'_heap'};} ? :
508 0 0 unless (scalar @{$_Q->{'_heap'};})
510 0 0 $_Q->{'_type'} ? :
516 0 0 if @{$_Q->{'_datp'}{$_p};} == 1
520 0 0 $_Q->{'_type'} ? :
529 0 0 if (defined $_p)
530 0 0 if not &looks_like_number($_p) or int $_p != $_p
533 0 0 unless exists $_Q->{'_datp'}{$_p}
546 0 0 if ($_p < $_Q->{'_heap'}[0]) { }
0 0 elsif ($_p > $_Q->{'_heap'}[-1]) { }
561 0 0 if ($_p > $_Q->{'_heap'}[$_midpoint]) { }
581 0 0 if ($_p > $_Q->{'_heap'}[0]) { }
0 0 elsif ($_p < $_Q->{'_heap'}[-1]) { }
596 0 0 if ($_p < $_Q->{'_heap'}[$_midpoint]) { }
773 0 0 if exists $_function->{$key}
814 0 20 if defined $\
815 0 20 if $/ ne $LF
820 0 20 $_is_MSWin32 ? :
826 20 0 if $_[2] > 0
828 20 0 unless $_is_MSWin32
831 0 20 if $MCE::Signal::SIG
836 0 0 unless my $_Q = $_obj->{$_id}
837 0 0 unless exists $_Q->{'_qr_sock'}
842 0 0 unless exists $_Q->{'_ar_sock'}
843 0 0 if not &looks_like_number($_t) or int $_t != $_t
846 0 0 if $_t < 0
849 0 0 if $_is_MSWin32
859 0 16 unless my $_Q = $_obj->{$_id}
860 0 16 unless exists $_Q->{'_qr_sock'}
862 6 10 if (defined $_cnt and $_cnt ne '1') { }
863 0 6 if not &looks_like_number($_cnt) or int $_cnt != $_cnt or $_cnt < 1
872 10 6 if $_len > 0 and $_cnt == 1
873 6 0 if $_len > 0
874 0 0 if $_len == -2
876 0 0 if $_is_MSWin32
886 0 4 unless my $_Q = $_obj->{$_id}
887 0 4 unless exists $_Q->{'_qr_sock'}
889 0 4 if (defined $_cnt and $_cnt ne '1') { }
890 0 0 if not &looks_like_number($_cnt) or int $_cnt != $_cnt or $_cnt < 1
899 0 4 if $_len < 0
903 4 0 $_cnt == 1 ? :
907 0 4 @_ == 1 && !wantarray ? :