blib/lib/Cache/Bounded.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 8 | 10 | 80.0 |
line | true | false | branch |
---|---|---|---|
17 | 2 | 1 | if (UNIVERSAL::isa($_[0], 'HASH')) |
18 | 2 | 0 | if $_[0]{'interval'} > 1 |
19 | 2 | 0 | if $_[0]{'size'} > 1 |
43 | 3 | 83 | if ($$self{'count'} >= $$self{'interval'}) |
45 | 2 | 1 | if scalar(keys %{$$self{'cache'};}) + 1 >= $$self{'size'} |