blib/lib/Tie/Cache.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 21 | 38 | 55.2 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
147 | 1 | 1 | 0 | $$self{'max_bytes'} and not $$self{'max_size'} |
151 | 1 | 1 | 0 | $$self{'max_bytes'} and $$self{'max_bytes'} < 1000 |
155 | 1 | 1 | 0 | $$self{'max_size'} and $$self{'max_size'} < 3 |
378 | 0 | 0 | 20003 | defined $$key and defined $$value |
401 | 15004 | 0 | 2 | ref $elem and ref($elem) =~ /^(SCALAR|HASH|ARRAY)$/ |
454 | 0 | 20003 | 5001 | $$self{'max_count'} and $$self{'count'} > $$self{'max_count'} |
5000 | 15003 | 0 | $$self{'max_bytes'} and $$self{'bytes'} > $$self{'max_bytes'} |
line | l | !l | condition |
---|---|---|---|
481 | 15003 | 5000 | $$self{'nodes'}{$key} || (return) |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
105 | 2 | 0 | 0 | $max_count or $$options{'MaxBytes'} |
111 | 1 | 0 | 1 | $$options{'MaxSize'} || ($$options{'MaxBytes'} ? int($$options{'MaxBytes'} / 10) + 1 : 0) |
0 | 0 | 2 | $$options{'Debug'} || $Tie::Cache::Debug | |
355 | 0 | 0 | 0 | $$self{'hit'} or $$self{'miss'} |
454 | 5001 | 0 | 20003 | $$self{'max_count'} and $$self{'count'} > $$self{'max_count'} or $$self{'max_bytes'} and $$self{'bytes'} > $$self{'max_bytes'} |