line |
true |
false |
branch |
241
|
0 |
12 |
unless $mode =~ /(slave)|(master)/ |
250
|
0 |
12 |
if (not -e $filename and $mode eq 'slave') |
255
|
1 |
11 |
unless -e $filename |
259
|
7 |
5 |
if ($mode eq 'slave') { } |
262
|
1 |
6 |
if flock($fd, 5) |
267
|
0 |
6 |
unless $nslots == $self->n_slots |
268
|
0 |
6 |
unless $slotsize == $declared_size |
273
|
1 |
4 |
unless flock($fd, 6) |
288
|
5 |
7 |
if ($self->_mode eq 'master') |
289
|
4 |
1 |
if $self->_fd |
312
|
2 |
10 |
if $idx >= $self->n_slots or $idx < 0 |
333
|
9 |
3 |
@rest && ref $rest[0] eq 'ARRAY' ? : |
336
|
2 |
10 |
if $idx >= $self->n_slots or $idx < 0 |
337
|
0 |
10 |
if $idx != $self->_last_idx |
342
|
7 |
3 |
if ($values) |
343
|
2 |
5 |
if @$values != $self->slot_shared_size |
349
|
1 |
10000 |
if (++$attempts > $max_lock_attempts) |
362
|
2 |
2 |
if ($actual_generation == $self->_last_generation) |
376
|
6 |
1 |
if (%private_values) |
380
|
2 |
5 |
if ($private_idx >= $self->slot_private_size or $private_idx < 0) |