Branch Coverage

blib/lib/App/Ack/ConfigLoader.pm
Criterion Covered Total %
branch 39 122 31.9


line true false branch
43 0 0 unless ($dir =~ /:/)
49 0 0 if ($filter_type eq "firstlinematch")
58 0 0 if ($previous_inversion_matches) { }
61 0 0 if ($is_inverted)
68 0 0 $is_inverted ? :
73 0 0 if ($filter_type eq "is")
83 0 0 $App::Ack::is_windows ? :
94 0 0 if ($spec =~ /^(\w+):(\w+):(.*)/) { }
0 0 elsif ($spec =~ /^(\w+)=(.*)/) { }
119 0 0 unless defined $opt->{'filters'} and @filters
128 0 0 if ($opt_filter->is_inverted and "$opt_filter->{'filter'}" eq join($", @filters))
154 0 0 if (not $value) { }
176 0 0 unless ($value)
201 74 0 if (ref $args) { }
250 0 0 if ($value =~ s/^no//)
260 0 0 if ($callback) { }
290 0 0 if (not $value)
314 0 0 unless ($opt->{'ifiles'})
347 0 0 if $value
360 148 0 $extra_specs ? :
369 24 24 !defined($val) || $val < 0 ? :
380 74 0 if ($source->{'name'} eq "ARGV")
386 74 0 if ($argv_source)
401 0 74 if ($source->{'is_ackrc'})
413 0 74 if ($source->{'project'})
426 74 0 if (ref $args) { }
433 0 74 unless ($ret)
434 0 0 unless ($is_help_types_active)
435 0 0 $source_name eq 'ARGV' ? :
439 0 74 if ($opt->{'noenv_seen'})
462 0 0 if ($arg =~ /(\w+)=/) { }
480 0 0 if (ref $options ne "ARRAY")
486 0 0 unless $options->[$j] =~ /^-/
533 0 0 unless ($opts_by_source{$name})
558 0 74 if ($sources->[$index]{'name'} eq "Defaults")
564 74 0 unless defined $default_index
573 0 0 if (ref $args) { }
585 0 0 unless $should_remove
604 74 0 if ($source->{'name'} eq "ARGV")
610 0 74 if ($dump)
627 74 0 if (ref $args) { }
629 74 0 if ($source_name eq 'ARGV') { }
0 0 elsif (@{$args;}) { }
643 74 0 unless (grep {not $_->is_inverted;} @{$filters;})
664 2 2 unless ($noenv)
668 0 4 if ($ackrc)
671 0 0 if (open my $fh, '<', $ackrc) { }
687 2 2 if (@lines)
709 2 2 unless defined $file and -e $file
713 0 2 unless open my $fh, "<", $file
719 0 2 if $line eq ""
720 0 2 if $line =~ /^\s*#/
724 0 2 unless close $fh
742 0 0 if $i eq $j
743 0 0 if ($mutex->{$i}{$j})
819 0 0 length $arg == 1 ? :
830 1406 3626 if ($opt_spec =~ s/(=[si])$//)
833 370 4662 if ($opt_spec =~ s/(:.+)$//)
839 1702 5106 if defined $type
840 666 6142 if defined $default
841 962 5846 if $negatable