blib/lib/Cache/FastMmap.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 70 | 96 | 72.9 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
754 | 148527 | 16110 | 21262 | not $Found and my $read_cb = $Self->{'read_cb'} |
788 | 165889 | 0 | 20009 | $_[2] && $_[2]{'skip_unlock'} |
792 | 26849 | 159047 | 2 | defined $Val and $Self->{'compress'} |
793 | 26849 | 59740 | 99309 | defined $Val and $Self->{'deserialize'} |
822 | 75942 | 15010 | 16 | $Opts && $Opts->{'expire_time'} |
830 | 75942 | 17 | 15009 | $Opts && $Opts->{'skip_lock'} |
853 | 34762 | 0 | 56206 | $write_back && $DidStore |
56206 | 31762 | 3000 | not $write_back && $DidStore and my $write_cb = $Self->{'write_cb'} | |
943 | 6301 | 0 | 5000 | $_[2] && $_[2]{'skip_lock'} |
955 | 0 | 11000 | 301 | !$DidDel || $DidDel && !($Flags & 1) and my $delete_cb = $Self->{'delete_cb'} |
1043 | 0 | 0 | 209 | $Mode == 2 and not $Uncompress |
0 | 1 | 208 | $Mode == 2 and not $Uncompress and not $Deserialize | |
1148 | 0 | 4 | 0 | defined $Val and $Self->{'compress'} |
1149 | 0 | 4 | 0 | defined $Val and $Self->{'deserialize'} |
1171 | 2 | 0 | 0 | $Opts && $Opts->{'expire_time'} |
1244 | 39645 | 20 | 64787 | $Self->{'write_back'} && $WB |
1293 | 8023 | 0 | 1 | $Self->{'empty_on_exit'} and $Cache |
8023 | 0 | 1 | $Self->{'empty_on_exit'} and $Cache and $Self->{'pid'} == $$ | |
1304 | 0 | 2 | 8022 | $Self->{'unlink_on_exit'} and $Self->{'pid'} == $$ |
line | l | !l | condition |
---|---|---|---|
613 | 4 | 0 | $known_compressors{$compressor} || die("Unrecognized value >$compressor< for `compressor` parameter") |
633 | 1 | 8026 | $Args{'empty_on_exit'} || 0 |
659 | 0 | 0 | $Args{'page_size'} || 65536 |
680 | 8016 | 11 | $num_pages ||= 89 |
681 | 8017 | 10 | $page_size ||= 65536 |
691 | 0 | 8027 | int($Args{'start_slots'} || 0) || 89 |
694 | 8008 | 19 | $Args{'write_action'} || 'write_through' |
1040 | 410 | 205 | $_[1] || 0 |
1278 | 18 | 8026 | shift() || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
547 | 0 | 8027 | 0 | ref $Proto || $Proto |
577 | 8022 | 5 | 0 | $Args{'serializer'} // ($Args{'raw_values'} ? '' : 'storable') |
604 | 1 | 3 | 8023 | $Args{'compressor'} // ($Args{'compress'} ? 'zlib' : 0) |
620 | 0 | 0 | 4 | $compressor_module eq 'Compress::LZ4' or $compressor_module eq 'Compress::Snappy' |
769 | 12921 | 2 | 8338 | defined $Val or $Self->{'cache_not_found'} |
955 | 5142 | 6159 | 0 | !$DidDel || $DidDel && !($Flags & 1) |
1043 | 406 | 208 | 1 | $Mode <= 1 or $Mode == 2 and not $Uncompress and not $Deserialize |