Branch Coverage

blib/lib/Captive/Portal/LockHandle.pm
Criterion Covered Total %
branch 26 30 86.6


line true false branch
47 0 119 unless exists $opts{'file'}
55 0 119 unless my $lock_handle = $self->SUPER::new($file, 66)
58 0 119 unless my $fileno = $lock_handle->fileno
61 0 119 unless exists $opts{'shared'}
62 1 118 unless exists $opts{'blocking'}
63 61 58 unless exists $opts{'try'}
64 115 4 unless exists $opts{'timeout'}
66 11 108 $opts{'shared'} ? :
10 109 $opts{'blocking'} ? :
72 11 108 if ($opts{'shared'}) { }
83 10 109 if ($opts{'blocking'}) { }
96 3 7 unless flock $lock_handle, $mode
113 3 7 if $error
131 20 108 unless flock $lock_handle, $mode
138 20 108 if ($error)