Branch Coverage

blib/lib/Cache/FastMmap.pm
Criterion Covered Total %
branch 34 64 53.1


line true false branch
408 2 8 if (not $raw_values)
409 0 2 unless eval 'use Storable qw(freeze thaw); 1;'
416 0 10 if $expire_time =~ s/([mhd])$//i
426 0 10 if ($cache_size = $Args{'cache_size'}) { }
427 0 0 if $cache_size =~ s/([km])$//i
429 0 0 if ($num_pages = $Args{'num_pages'}) { }
431 0 0 if $page_size < 4096
435 0 0 if $page_size =~ s/([km])$//i
436 0 0 if $page_size < 4096
440 0 0 if ($num_pages * $page_size <= $cache_size) { }
457 0 10 if $page_size =~ s/([km])$//i
523 13817 31806 if (not $Found and my $read_cb = $$Self{'read_cb'})
529 13817 0 if (defined $Val or $$Self{'cache_not_found'})
535 0 13817 if not $$Self{'raw_values'}
548 45623 0 unless $_[2] and $_[2]{'skip_unlock'}
551 12207 33416 if (not $$Self{'raw_values'})
552 12204 3 if defined $Val
572 14854 0 unless $_[3] and $_[3]{'skip_lock'}
578 14350 504 $$Self{'raw_values'} ? :
586 3100 11754 $write_back ? :
593 3000 11854 if (!$write_back || !$DidStore and my $write_cb = $$Self{'write_cb'})
665 301 0 if (!$DidDel || $DidDel && !($Flags & 1) and my $delete_cb = $$Self{'delete_cb'})
714 0 2 $_[0] ? :
734 10 1 if $Mode <= 1 or $Mode == 2 and $$Self{'raw_values'}
796 0 0 unless $Found
799 0 0 unless $$Self{'raw_values'}
828 0 0 unless $$Self{'raw_values'}
890 11573 17371 $$Self{'write_back'} && $WB ? :
892 11573 17371 $write_cb ? :
895 8102 3100 if not $$_{'flags'} & 1
904 0 10 if ($$Self{'empty_on_exit'} and $Cache)
908 10 0 if ($Cache)