Condition Coverage

blib/script/plockf
Criterion Covered Total %
condition 30 63 47.6


and 3 conditions

line !l l&&!r l&&r condition
61 14 5 1 defined $timeout and $timeout < 0
74 12 2 3 defined $timeout and $timeout > 0
76 2 0 1 not $timeout =~ /^\d+$/ and eval { do { require Time::HiRes; "Time::HiRes"->VERSION("1.9716"); "Time::HiRes"->import("ualarm"); 1 } }
86 14 3 3 not $lock_fh || $timed_out and !defined($timeout) || $timeout > 0
130 17 0 0 $] < "5.01" and eval { do { &Fcntl::O_EXLOCK } }
17 0 0 $] < "5.01" and eval { do { &Fcntl::O_EXLOCK } } and eval { do { &Fcntl::O_NONBLOCK } }
0 17 0 $] >= "5.01" and defined &Fcntl::O_EXLOCK
17 0 0 $] >= "5.01" and defined &Fcntl::O_EXLOCK and defined &Fcntl::O_NONBLOCK
17 0 0 $] < "5.01" and eval { do { &Fcntl::LOCK_EX } }
17 0 0 $] < "5.01" and eval { do { &Fcntl::LOCK_EX } } and eval { do { &Fcntl::LOCK_NB } }
0 0 17 $] >= "5.01" and defined &Fcntl::LOCK_EX
0 0 17 $] >= "5.01" and defined &Fcntl::LOCK_EX and defined &Fcntl::LOCK_NB
150 0 0 0 $nocreat and $!{'ENOENT'}
171 0 0 1 $nocreat and $!{'ENOENT'}

or 3 conditions

line l !l&&r !l&&!r condition
86 13 1 6 $lock_fh || $timed_out
1 3 2 !defined($timeout) || $timeout > 0
130 0 0 17 $] < "5.01" and eval { do { &Fcntl::O_EXLOCK } } and eval { do { &Fcntl::O_NONBLOCK } } or $] >= "5.01" and defined &Fcntl::O_EXLOCK and defined &Fcntl::O_NONBLOCK
0 0 17 $] < "5.01" and eval { do { &Fcntl::LOCK_EX } } and eval { do { &Fcntl::LOCK_NB } } or $] >= "5.01" and defined &Fcntl::LOCK_EX and defined &Fcntl::LOCK_NB
147 0 0 0 $!{'EAGAIN'} or $!{'EINTR'}
168 0 0 1 $!{'EAGAIN'} or $!{'EINTR'}
188 0 0 10 $stat_fh[1] != $stat_file[1] or $stat_fh[0] != $stat_file[0]