| line |
true |
false |
branch |
|
23
|
2 |
101 |
unless $self->{'limit'} =~ /\A\d+\z/ms |
|
24
|
2 |
99 |
if keys %opt |
|
30
|
8 |
0 |
unless ($self->try_acquire($id, $key, $quantity)) |
|
38
|
4 |
30 |
if (1 == @_) |
|
41
|
0 |
30 |
unless $limit =~ /\A\d+\z/ms |
|
46
|
14 |
16 |
if ($resources_increases) |
|
54
|
1 |
2 |
if $state->{'algo'} ne 'Sub::Throttler::Limit' |
|
56
|
1 |
1 |
if ($v > $VERSION) |
|
86
|
5 |
51 |
if $self->{'acquired'}{$id} and exists $self->{'acquired'}{$id}{$key} |
|
87
|
16 |
376 |
if $quantity <= 0 |
|
90
|
165 |
211 |
if ($used + $quantity > $self->{'limit'}) |
|
101
|
5 |
116 |
unless $self->{'acquired'}{$id} |
|
107
|
109 |
21 |
unless ($self->{'used'}{$key}) |