Branch Coverage

blib/lib/App/Ack/ConfigLoader.pm
Criterion Covered Total %
branch 0 122 0.0


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 0 0 if (ref $args) { }
250 0 0 if ($value =~ s/^no//)
260 0 0 if ($callback) { }
288 0 0 if (not $value)
312 0 0 unless ($opt->{'ifiles'})
344 0 0 if $value
357 0 0 $extra_specs ? :
366 0 0 !defined($val) || $val < 0 ? :
377 0 0 if ($source->{'name'} eq "ARGV")
383 0 0 if ($argv_source)
398 0 0 if ($source->{'is_ackrc'})
410 0 0 if ($source->{'project'})
423 0 0 if (ref $args) { }
430 0 0 unless ($ret)
431 0 0 unless ($is_help_types_active)
432 0 0 $source_name eq 'ARGV' ? :
436 0 0 if ($opt->{'noenv_seen'})
459 0 0 if ($arg =~ /(\w+)=/) { }
477 0 0 if (ref $options ne "ARRAY")
483 0 0 unless $options->[$j] =~ /^-/
530 0 0 unless ($opts_by_source{$name})
555 0 0 if ($sources->[$index]{'name'} eq "Defaults")
561 0 0 unless defined $default_index
570 0 0 if (ref $args) { }
582 0 0 unless $should_remove
601 0 0 if ($source->{'name'} eq "ARGV")
607 0 0 if ($dump)
624 0 0 if (ref $args) { }
626 0 0 if ($source_name eq 'ARGV') { }
0 0 elsif (@{$args;}) { }
640 0 0 unless (grep {not $_->is_inverted;} @{$filters;})
661 0 0 unless ($noenv)
665 0 0 if ($ackrc)
668 0 0 if (open my $fh, '<', $ackrc) { }
684 0 0 if (@lines)
706 0 0 unless defined $file and -e $file
710 0 0 unless open my $fh, "<", $file
716 0 0 if $line eq ""
717 0 0 if $line =~ /^\s*#/
721 0 0 unless close $fh
739 0 0 if $i eq $j
740 0 0 if ($mutex->{$i}{$j})
816 0 0 length $arg == 1 ? :
827 0 0 if ($opt_spec =~ s/(=[si])$//)
830 0 0 if ($opt_spec =~ s/(:.+)$//)
836 0 0 if defined $type
837 0 0 if defined $default
838 0 0 if $negatable