Condition Coverage

lib/Lock/File.pm
Criterion Covered Total %
condition 27 37 72.9


and 3 conditions

line !l l&&!r l&&r condition
28 234 0 906 $$self{'_remove'} and $$self{'_fname'}
67 1015 1 642 exists $$opts{'blocking'} and not $$opts{'blocking'}
1016 641 1 exists $$opts{'blocking'} and not $$opts{'blocking'} and defined $$opts{'timeout'}
97 15 0 0 defined $question and $question > 0
160 2500 56 2 defined $$opts{'timeout'} and not $$opts{'timeout'}
215 78 17 50 $locked < $max and not $ret

or 2 conditions

line l !l condition
64 1639 34 $opts ||= {}
156 3199 0 $fname ||= ''
169 0 0 $fname || ''
191 27 131 $opts ||= {}
237 0 6 $opts ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
60 0 0 1673 @_ > 2 or @_ < 1
160 641 0 2558 not $$opts{'blocking'} or defined $$opts{'timeout'} and not $$opts{'timeout'}
207 166 33 346 $ret ||= $lock