Condition Coverage

blib/lib/Forks/Queue/File.pm
Criterion Covered Total %
condition 101 216 46.7


and 3 conditions

line !l l&&!r l&&r condition
64 15403 0 129 not $z and $Forks::Queue::NOTIFY_OK
0 0 129 not $z and $Forks::Queue::NOTIFY_OK and $!{'EINTR'}
175 65 0 2 $opts{'join'} and -f $opts{'file'}
227 0 0 0 $role and $role eq 'P'
264 0 31 54 $self->{'_pids'} and 0 == keys %{$$self{'_pids'};}
31 5 49 $self->{'_pids'} and 0 == keys %{$$self{'_pids'};} and not $self->{'persist'}
374 660 0 0 defined $t and $id ne $me
386 0 0 0 $thr and $z7 = $thr->kill('IO')
0 0 0 $thr and $z7 = $thr->kill('IO') and $_DEBUG
589 9 466 0 $pushed and $self->_debug
649 71 0 71 $self->{'_avail'} < $self->{'limit'} && !$self->{'_end'}
675 0 0 0 $self->limit > 0 and $count > $self->limit
684 0 0 0 $self->{'_avail'} < $count and not $self->{'_end'}
701 0 0 0 $self->_expired and @return == 0
714 15 0 0 $self->limit > 0 and $count > $self->limit
724 10 0 52 $self->{'_avail'} < $count and not $self->{'_end'}
726 10 0 35 @return < $count and $self->{'_avail'} > 0
744 0 10 0 $self->{'_maintenance_freq'} and $self->{'_pos'} >= $self->{'_maintenance_freq'}
755 10 0 5 $self->_expired and @return == 0
778 78 12 728 @return < $count and $self->{'_avail'} > 0
794 0 85 5 $self->{'_maintenance_freq'} and $self->{'_pos'} >= $self->{'_maintenance_freq'}
803 32 10 48 not wantarray and @_ < 2
826 0 7 20 @return < $count and $self->{'_avail'} > 0
843 0 7 0 $self->{'_maintenance_freq'} and $self->{'_pos'} >= $self->{'_maintenance_freq'}
852 5 0 2 not wantarray and @_ < 2
999 0 0 20 $self->{'on_limit'} ne 'tq-compat' and $self->{'limit'} > 0
1084 22 0 6 not $self->{'_avail'} || $self->{'_end'} and 1 + _SLEEP($self)
1086 12 10 0 $self->{'_end'} and not $self->{'_avail'}
1114 20 0 2 not wantarray and @_ < 2
1132 4 0 0 $self->{'_end'} and not $self->{'_avail'}
1163 0 0 4 not wantarray and @_ < 2
1242 0 0 51 -d $candidate and -w _
0 0 51 -d $candidate and -w _ and -x _

or 2 conditions

line l !l condition
132 0 93 $opts{'_header_size'} //= 2048
144 0 93 $opts{'_maintenance_freq'} //= 128
157 0 0 $opts{'dflock'} //= 1
159 0 0 $opts{'dflock'} //= 1
161 0 0 $opts{'dflock'} //= 1
292 85 0 readline $self->{'_fh'} // ''
321 256 15345 $h->{'lockdir'} || undef
623 13205 0 $Forks::Queue::SLEEP_INTERVAL || 1
670 0 0 $_[0] // 1
709 15 0 $_[0] // 1
763 49 50 $count ||= 1
812 5 2 $count ||= 1
861 58 13 $index ||= 0
896 36 22 $index ||= 0
929 32 14 CORE::shift() || 0
932 16 20 $_[0] // 1
1072 10 12 $count ||= 1
1123 0 4 $count ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
45 0 0 15659 $self->{'debug'} // $DEBUG
52 256 0 0 $z or $self->{'_DESTROY'}
78 0 0 15659 $self->{'debug'} // $DEBUG
98 0 0 15623 $self->{'debug'} // $DEBUG
103 15623 0 0 $self->{'__locked'} or not $self->{'_DESTROY'}
109 0 0 36 $self->{'debug'} // $DEBUG
126 53 40 11 $opts{'file'} //= _impute_file()
156 0 0 93 $^O eq 'solaris' or $^O eq 'aix'
219 0 0 85 $self->{'debug'} // $DEBUG
333 0 0 1005 $self->{'debug'} // $DEBUG
363 0 0 660 $self->{'debug'} // $DEBUG
457 0 0 986 $self->{'debug'} // $DEBUG
633 4 5 13081 $self->{'_avail'} || $self->{'_end'} || $self->_expired
697 0 0 0 @return or $self->{'_end'}
0 0 0 @return or $self->{'_end'} or $self->_expired
704 0 0 0 $return[0] // ()
751 10 0 52 @return or $self->{'_end'}
0 5 47 @return or $self->{'_end'} or $self->_expired
758 0 0 0 $return[0] // ()
804 48 0 0 $return[0] // ()
853 0 0 2 $return[0] // ()
954 4 4 28 $count <= 0 or $index >= $n
978 12 8 0 $return[0] // ()
1084 22 0 6 $self->{'_avail'} || $self->{'_end'}
1211 0 0 19254 +(CORE::shift())->{'debug'} // $Forks::Queue::DEBUG
1216 0 0 0 $fh_dump ||= *STDERR
1243 0 51 0 $file //= "$candidate/.fq-$$-$id-base"