Condition Coverage

blib/lib/Forks/Queue/File.pm
Criterion Covered Total %
condition 95 204 46.5


and 3 conditions

line !l l&&!r l&&r condition
63 16194 0 139 not $z and $Forks::Queue::NOTIFY_OK
0 0 139 not $z and $Forks::Queue::NOTIFY_OK and $!{'EINTR'}
173 65 0 2 $opts{'join'} and -f $opts{'file'}
223 0 0 0 $role and $role eq 'P'
260 0 31 54 $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
585 9 466 0 $pushed and $self->_debug
645 71 0 71 $self->{'_avail'} < $self->{'limit'} && !$self->{'_end'}
671 0 0 0 $self->limit > 0 and $count > $self->limit
680 0 0 0 $self->{'_avail'} < $count and not $self->{'_end'}
697 0 0 0 $self->_expired and @return == 0
710 15 0 0 $self->limit > 0 and $count > $self->limit
720 10 0 50 $self->{'_avail'} < $count and not $self->{'_end'}
722 10 0 35 @return < $count and $self->{'_avail'} > 0
740 0 10 0 $self->{'_maintenance_freq'} and $self->{'_pos'} >= $self->{'_maintenance_freq'}
751 10 0 5 $self->_expired and @return == 0
774 78 12 728 @return < $count and $self->{'_avail'} > 0
790 0 85 5 $self->{'_maintenance_freq'} and $self->{'_pos'} >= $self->{'_maintenance_freq'}
799 32 10 48 not wantarray and @_ < 2
822 0 7 20 @return < $count and $self->{'_avail'} > 0
839 0 7 0 $self->{'_maintenance_freq'} and $self->{'_pos'} >= $self->{'_maintenance_freq'}
848 5 0 2 not wantarray and @_ < 2
995 0 0 20 $self->{'on_limit'} ne 'tq-compat' and $self->{'limit'} > 0
1080 22 0 6 not $self->{'_avail'} || $self->{'_end'} and 1 + _SLEEP($self)
1082 12 10 0 $self->{'_end'} and not $self->{'_avail'}
1110 20 0 2 not wantarray and @_ < 2
1128 4 0 0 $self->{'_end'} and not $self->{'_avail'}
1159 0 0 4 not wantarray and @_ < 2
1238 0 0 51 -d $candidate and -w _
0 0 51 -d $candidate and -w _ and -x _

or 2 conditions

line l !l condition
129 0 93 $opts{'_header_size'} //= 2048
141 0 93 $opts{'_maintenance_freq'} //= 128
154 0 0 $opts{'dflock'} //= 1
156 0 0 $opts{'dflock'} //= 1
158 0 0 $opts{'dflock'} //= 1
288 85 0 readline $self->{'_fh'} // ''
317 243 16136 $h->{'lockdir'} || undef
619 14006 0 $Forks::Queue::SLEEP_INTERVAL || 1
666 0 0 $_[0] // 1
705 15 0 $_[0] // 1
759 49 50 $count ||= 1
808 5 2 $count ||= 1
857 58 13 $index ||= 0
892 36 22 $index ||= 0
925 32 14 CORE::shift() || 0
928 16 20 $_[0] // 1
1068 10 12 $count ||= 1
1119 0 4 $count ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
45 0 0 16437 $self->{'debug'} // $DEBUG
76 0 0 16437 $self->{'debug'} // $DEBUG
96 0 0 16401 $self->{'debug'} // $DEBUG
106 0 0 36 $self->{'debug'} // $DEBUG
123 53 40 11 $opts{'file'} //= _impute_file()
215 0 0 85 $self->{'debug'} // $DEBUG
329 0 0 1005 $self->{'debug'} // $DEBUG
359 0 0 660 $self->{'debug'} // $DEBUG
453 0 0 986 $self->{'debug'} // $DEBUG
629 4 5 13884 $self->{'_avail'} || $self->{'_end'} || $self->_expired
693 0 0 0 @return or $self->{'_end'}
0 0 0 @return or $self->{'_end'} or $self->_expired
700 0 0 0 $return[0] // ()
747 10 0 50 @return or $self->{'_end'}
0 5 45 @return or $self->{'_end'} or $self->_expired
754 0 0 0 $return[0] // ()
800 48 0 0 $return[0] // ()
849 0 0 2 $return[0] // ()
950 4 4 28 $count <= 0 or $index >= $n
974 12 8 0 $return[0] // ()
1080 22 0 6 $self->{'_avail'} || $self->{'_end'}
1207 0 0 20032 +(CORE::shift())->{'debug'} // $Forks::Queue::DEBUG
1212 0 0 0 $fh_dump ||= *STDERR
1239 0 51 0 $file //= "$candidate/.fq-$$-$id-base"