Branch Coverage

blib/lib/App/Greple/xlate.pm
Criterion Covered Total %
branch 34 76 44.7


line true false branch
674 0 8 if state $once_called++
675 8 0 if (defined $cache_method)
676 0 8 if ($cache_method eq "")
679 0 8 if ($cache_method =~ /^(no|never)/iu)
683 8 0 if ($xlate_engine)
685 8 0 if (eval "require $mod") { }
694 0 8 unless (defined &App::Greple::xlate::XLATE)
698 0 8 if (my $pat = opt("mask"))
701 0 8 if (my $patfile = opt("maskfile"))
718 29 1 unless (exists $cache{$key})
724 8 0 if @miss
728 16 0 ref $_[0] ? :
729 0 16 unless opt("progress")
730 16 0 if (my $label = $opt->{'label'})
733 58 0 $i == 1 ? :
734 0 58 if $i > 1
747 0 8 if $dryrun
749 0 8 if $maskobj
753 0 8 if $maskobj
756 0 8 if @from != @to
780 0 30 if $fold_line
781 28 2 if (state $formatter = $formatter{$output_format}) { }
791 0 0 if ($maskobj)
800 5 3 if ($cache_method eq 'auto') { }
801 0 5 -f $file ? :
803 0 3 if ($cache_method and -f $current_file) { }
812 8 0 unless state $done++
814 0 8 unless $current_file = delete $args{&main::FILELABEL}
815 0 8 if /.\z/u
816 0 8 unless (defined $xlate_engine)
819 0 8 if ($output_format =~ /^(:+)$/u)
823 0 8 if (my $file = cache_file())
825 0 0 if ($cache_method =~ /create|clear/iu)
828 0 0 if ($cache_method =~ /accumulate/iu)
831 0 0 if ($force_update)
836 0 0 if $cache_method eq "create"
848 0 0 if $key eq &main::FILELABEL
849 0 0 unless exists $opt{$key}