| blib/lib/File/BasicFlock.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 13 | 22 | 59.0 |
| line | true | false | branch |
|---|---|---|---|
| 40 | 0 | 370 | unless (sysopen $f, $file, 2) |
| 50 | 0 | 370 | $shared ? : |
| 51 | 322 | 48 | if $nonblocking |
| 56 | 0 | 370 | if $File::BasicFlock::debug and $r |
| 58 | 65 | 305 | if $r |
| 59 | 305 | 0 | if ($nonblocking and $! == 11) |
| 60 | 305 | 0 | unless ($previous) |
| 76 | 0 | 65 | unless exists $File::BasicFlock::locks{$file} |
| 82 | 0 | 65 | unless defined $f |
| 84 | 0 | 65 | if $File::BasicFlock::debug |
| 85 | 0 | 65 | unless flock $f, 8 |