Condition Coverage

blib/lib/Cache/FastMmap.pm
Criterion Covered Total %
condition 70 99 70.7


and 3 conditions

line !l l&&!r l&&r condition
718 137069 15985 12723 not $Found and my $read_cb = $Self->{'read_cb'}
753 145770 20006 0 $_[2] && $_[2]{'skip_unlock'}
757 15987 149789 0 defined $Val and $Self->{'compress'}
758 15987 50480 99309 defined $Val and not $Self->{'raw_values'}
788 25859 15023 0 $Opts && $Opts->{'expire_time'}
796 25859 15023 0 $Opts && $Opts->{'skip_lock'}
819 34776 0 6106 $write_back && $DidStore
6106 31776 3000 not $write_back && $DidStore and my $write_cb = $Self->{'write_cb'}
909 6301 5000 0 $_[2] && $_[2]{'skip_lock'}
921 2 11000 299 !$DidDel || $DidDel && !($Flags & 1) and my $delete_cb = $Self->{'delete_cb'}
1009 0 1 7 $Mode == 2 and $RawValues
1 0 7 $Mode == 2 and $RawValues and not $Compress
1117 0 4 0 defined $Val and $Self->{'compress'}
1118 0 4 0 defined $Val and not $Self->{'raw_values'}
1140 2 0 0 $Opts && $Opts->{'expire_time'}
1214 39413 3 14732 $Self->{'write_back'} && $WB
1266 22 0 1 $Self->{'empty_on_exit'} and $Cache
22 0 1 $Self->{'empty_on_exit'} and $Cache and $Self->{'pid'} == $$
1277 0 2 21 $Self->{'unlink_on_exit'} and $Self->{'pid'} == $$

or 2 conditions

line l !l condition
535 0 25 $ENV{'TMPDIR'} || '/tmp'
536 0 25 $ENV{'TEMP'} || 'c:\\'
554 20 5 $Args{'raw_values'} || 0
563 1 24 $Args{'compressor'} || 0
597 1 24 $Args{'empty_on_exit'} || 0
623 0 0 $Args{'page_size'} || 65536
644 15 10 $num_pages ||= 89
645 16 9 $page_size ||= 65536
655 0 25 int($Args{'start_slots'} || 0) || 89
658 7 18 $Args{'write_action'} || 'write_through'
1006 8 4 $_[1] || 0
1251 18 24 shift() || ''

or 3 conditions

line l !l&&r !l&&!r condition
524 0 25 0 ref $Proto || $Proto
566 1 3 21 $compressor ||= $Args{'compress'} ? 'zlib' : 0
584 0 0 4 $compressor eq 'Compress::LZ4' or $compressor eq 'Compress::Snappy'
733 12720 0 2 defined $Val or $Self->{'cache_not_found'}
921 5184 0 6117 !$DidDel || $DidDel && !($Flags & 1)
1009 4 0 8 $Mode <= 1 or $Mode == 2 and $RawValues and not $Compress