blib/lib/Cache/FastMmap.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 65 | 100 | 65.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
751 | 137138 | 15520 | 13116 | not $Found and my $read_cb = $Self->{'read_cb'} |
785 | 145767 | 20006 | 0 | $_[2] && $_[2]{'skip_unlock'} |
789 | 15522 | 150251 | 0 | defined $Val and $Self->{'compress'} |
790 | 15522 | 150251 | 0 | defined $Val and $Self->{'deserialize'} |
819 | 25862 | 15023 | 0 | $Opts && $Opts->{'expire_time'} |
827 | 25862 | 15023 | 0 | $Opts && $Opts->{'skip_lock'} |
850 | 34779 | 0 | 6106 | $write_back && $DidStore |
6106 | 31779 | 3000 | not $write_back && $DidStore and my $write_cb = $Self->{'write_cb'} | |
940 | 6301 | 5000 | 0 | $_[2] && $_[2]{'skip_lock'} |
952 | 0 | 11000 | 301 | !$DidDel || $DidDel && !($Flags & 1) and my $delete_cb = $Self->{'delete_cb'} |
1040 | 0 | 0 | 8 | $Mode == 2 and not $Uncompress |
0 | 1 | 7 | $Mode == 2 and not $Uncompress and not $Deserialize | |
1145 | 0 | 4 | 0 | defined $Val and $Self->{'compress'} |
1146 | 0 | 4 | 0 | defined $Val and $Self->{'deserialize'} |
1168 | 2 | 0 | 0 | $Opts && $Opts->{'expire_time'} |
1241 | 39809 | 3 | 14732 | $Self->{'write_back'} && $WB |
1290 | 22 | 0 | 1 | $Self->{'empty_on_exit'} and $Cache |
22 | 0 | 1 | $Self->{'empty_on_exit'} and $Cache and $Self->{'pid'} == $$ | |
1301 | 0 | 2 | 21 | $Self->{'unlink_on_exit'} and $Self->{'pid'} == $$ |
line | l | !l | condition |
---|---|---|---|
555 | 0 | 25 | $ENV{'TMPDIR'} || '/tmp' |
556 | 0 | 25 | $ENV{'TEMP'} || 'c:\\' |
610 | 4 | 0 | $known_compressors{$compressor} || die("Unrecognized value >$compressor< for `compressor` parameter") |
630 | 1 | 24 | $Args{'empty_on_exit'} || 0 |
656 | 0 | 0 | $Args{'page_size'} || 65536 |
677 | 15 | 10 | $num_pages ||= 89 |
678 | 16 | 9 | $page_size ||= 65536 |
688 | 0 | 25 | int($Args{'start_slots'} || 0) || 89 |
691 | 7 | 18 | $Args{'write_action'} || 'write_through' |
1037 | 8 | 4 | $_[1] || 0 |
1275 | 18 | 24 | shift() || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
544 | 0 | 25 | 0 | ref $Proto || $Proto |
574 | 20 | 0 | 5 | $Args{'serializer'} // ($Args{'raw_values'} ? '' : 'storable') |
601 | 1 | 0 | 24 | $Args{'compressor'} // ($Args{'compress'} ? 'zlib' : 0) |
617 | 0 | 0 | 4 | $compressor_module eq 'Compress::LZ4' or $compressor_module eq 'Compress::Snappy' |
766 | 13113 | 0 | 2 | defined $Val or $Self->{'cache_not_found'} |
952 | 5165 | 0 | 6136 | !$DidDel || $DidDel && !($Flags & 1) |
1040 | 4 | 0 | 8 | $Mode <= 1 or $Mode == 2 and not $Uncompress and not $Deserialize |