Condition Coverage

blib/lib/Forks/Queue/File.pm
Criterion Covered Total %
condition 93 195 47.6


and 3 conditions

line !l l&&!r l&&r condition
64 14199 0 69 not $z and $Forks::Queue::NOTIFY_OK
0 0 69 not $z and $Forks::Queue::NOTIFY_OK and $!{'EINTR'}
174 65 0 2 $opts{'join'} and -f $opts{'file'}
223 0 0 0 $role and $role eq 'P'
260 0 34 56 $self->{'_pids'} and 0 == keys %{$$self{'_pids'};}
370 660 0 0 defined $t and $id ne $me
382 0 0 0 $thr and $z7 = $thr->kill('IO')
0 0 0 $thr and $z7 = $thr->kill('IO') and $_DEBUG
575 9 466 0 $pushed and $self->_debug
628 66 0 71 $self->{'_avail'} < $self->{'limit'} && !$self->{'_end'}
658 0 0 0 $self->{'_avail'} < $count and not $self->{'_end'}
675 0 0 0 $self->_expired and @return == 0
693 10 0 55 $self->{'_avail'} < $count and not $self->{'_end'}
695 10 0 35 @return < $count and $self->{'_avail'} > 0
713 0 10 0 $self->{'_maintenance_freq'} and $self->{'_pos'} >= $self->{'_maintenance_freq'}
724 10 0 5 $self->_expired and @return == 0
747 78 12 728 @return < $count and $self->{'_avail'} > 0
763 0 85 5 $self->{'_maintenance_freq'} and $self->{'_pos'} >= $self->{'_maintenance_freq'}
772 32 10 48 not wantarray and @_ < 2
795 0 7 20 @return < $count and $self->{'_avail'} > 0
812 0 7 0 $self->{'_maintenance_freq'} and $self->{'_pos'} >= $self->{'_maintenance_freq'}
821 5 0 2 not wantarray and @_ < 2
1053 22 0 6 not $self->{'_avail'} || $self->{'_end'} and 1 + _SLEEP($self)
1055 12 10 0 $self->{'_end'} and not $self->{'_avail'}
1083 20 0 2 not wantarray and @_ < 2
1101 4 0 0 $self->{'_end'} and not $self->{'_avail'}
1132 0 0 4 not wantarray and @_ < 2
1211 0 0 51 -d $candidate and -w _
0 0 51 -d $candidate and -w _ and -x _

or 2 conditions

line l !l condition
130 0 93 $opts{'_header_size'} //= 2048
142 0 93 $opts{'_maintenance_freq'} //= 128
155 0 0 $opts{'dflock'} //= 1
157 0 0 $opts{'dflock'} //= 1
159 0 0 $opts{'dflock'} //= 1
288 90 0 readline $self->{'_fh'} // ''
317 236 14141 $h->{'lockdir'} || undef
602 12003 0 $Forks::Queue::SLEEP_INTERVAL || 1
649 0 0 $_[0] // 1
683 15 0 $_[0] // 1
732 49 50 $count ||= 1
781 5 2 $count ||= 1
830 72 6 $index ||= 0
865 26 14 $index ||= 0
898 32 14 CORE::shift() || 0
901 16 20 $_[0] // 1
1041 10 12 $count ||= 1
1092 0 4 $count ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
46 0 0 14435 $self->{'debug'} // $DEBUG
77 0 0 14435 $self->{'debug'} // $DEBUG
97 0 0 14399 $self->{'debug'} // $DEBUG
107 0 0 36 $self->{'debug'} // $DEBUG
124 53 40 11 $opts{'file'} //= _impute_file()
215 0 0 90 $self->{'debug'} // $DEBUG
329 0 0 1010 $self->{'debug'} // $DEBUG
359 0 0 660 $self->{'debug'} // $DEBUG
453 0 0 956 $self->{'debug'} // $DEBUG
612 4 5 11881 $self->{'_avail'} || $self->{'_end'} || $self->_expired
671 0 0 0 @return or $self->{'_end'}
0 0 0 @return or $self->{'_end'} or $self->_expired
678 0 0 0 $return[0] // ()
720 10 0 55 @return or $self->{'_end'}
0 5 50 @return or $self->{'_end'} or $self->_expired
727 0 0 0 $return[0] // ()
773 48 0 0 $return[0] // ()
822 0 0 2 $return[0] // ()
923 4 4 28 $count <= 0 or $index >= $n
947 12 8 0 $return[0] // ()
1053 22 0 6 $self->{'_avail'} || $self->{'_end'}
1180 0 0 18030 +(CORE::shift())->{'debug'} // $Forks::Queue::DEBUG
1185 0 0 0 $fh_dump ||= *STDERR
1212 0 51 0 $file //= "$candidate/.fq-$$-$id-base"