blib/lib/Lock/Server.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 37 | 64 | 57.8 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
334 | 8 | 12 | 2 | @$lockers and $t > $self->{'_locker_counts'}{$lockers->[0]}{$key_to_check} |
367 | 14 | 8 | 0 | @$lockers and $t > $self->{'_locker_counts'}{$lockers->[0]}{$key_to_lock} |
466 | 16 | 19 | 1 | @$lockers and $t > $self->{'_locker_counts'}{$lockers->[0]}{$key_to_check} |
line | l | !l | condition |
---|---|---|---|
139 | 11 | 0 | $args->{'lock_timeout'} || 3 |
11 | 0 | $args->{'lock_attempt_timeout'} || 4 | |
0 | 11 | $args->{'host'} || '127.0.0.1' | |
0 | 11 | $args->{'port'} || 8004 | |
0 | 11 | $args->{'max_connections'} || 10 | |
0 | 11 | $args->{'reconnect_attemps'} || 10 | |
0 | 11 | $args->{'time_between_attempts'} || 5 | |
328 | 17 | 3 | $self->{'_locks'}{$key_to_check} ||= [] |
362 | 15 | 7 | $self->{'_locks'}{$key_to_lock} ||= [] |
426 | 17 | 0 | $self->{'_locks'}{$key_to_unlock} ||= [] |
460 | 35 | 0 | $self->{'_locks'}{$key_to_check} ||= [] |
515 | 22 | 0 | $host ||= '127.0.0.1' |
516 | 22 | 0 | $port ||= '8004' |
524 | 0 | 22 | $args->{'reconnect_attemps'} || 3 |
0 | 22 | $args->{'time_between_attempts'} || 3 | |
612 | 0 | 22 | $timeout //= 3 |
632 | 0 | 3 | $timeout //= 3 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
126 | 0 | 11 | 0 | ref $pkg || $pkg |
239 | 0 | 0 | 17 | $listener_socket or $count++ > $self->{'attempts'} |
250 | 0 | 0 | 6 | $listener_socket or $count > $self->{'attempts'} |
518 | 0 | 22 | 0 | ref $pkg || $pkg |
530 | 25 | 0 | 137 | shift() || $self->{'attempts'} |
534 | 158 | 0 | 162 | $sock or $count++ > $attempts |
536 | 158 | 0 | 4 | $sock or $count > $attempts |