Branch Coverage

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


line true false branch
40 0 0 unless ($dir =~ /:/)
46 0 0 if ($filter_type eq 'firstlinematch')
55 0 0 if ($previous_inversion_matches) { }
58 0 0 if ($is_inverted)
65 0 0 $is_inverted ? :
70 0 0 if ($filter_type eq 'is')
80 0 0 $App::Ack::is_windows ? :
91 0 0 if ($spec =~ /^(\w+):(\w+):(.*)/) { }
0 0 elsif ($spec =~ /^(\w+)=(.*)/) { }
116 0 0 unless defined $opt->{'filters'} and @filters
125 0 0 if ($opt_filter->is_inverted and "$opt_filter->{'filter'}" eq join($", @filters))
151 0 0 if (not $value) { }
173 0 0 unless ($value)
198 0 0 if (ref $args) { }
247 0 0 if ($value =~ s/^no//)
257 0 0 if ($callback) { }
285 0 0 if (not $value)
309 0 0 unless ($opt->{'ifiles'})
341 0 0 if $value
354 0 0 $extra_specs ? :
363 0 0 !defined($val) || $val < 0 ? :
374 0 0 if ($source->{'name'} eq 'ARGV')
380 0 0 if ($argv_source)
395 0 0 if ($source->{'is_ackrc'})
407 0 0 if ($source->{'project'})
420 0 0 if (ref $args) { }
427 0 0 unless ($ret)
428 0 0 unless ($is_help_types_active)
429 0 0 $source_name eq 'ARGV' ? :
433 0 0 if ($opt->{'noenv_seen'})
456 0 0 if ($arg =~ /(\w+)=/) { }
474 0 0 if (ref $options ne 'ARRAY')
480 0 0 unless $options->[$j] =~ /^-/
527 0 0 unless ($opts_by_source{$name})
552 0 0 if ($sources->[$index]{'name'} eq 'Defaults')
558 0 0 unless defined $default_index
567 0 0 if (ref $args) { }
579 0 0 unless $should_remove
598 0 0 if ($source->{'name'} eq 'ARGV')
604 0 0 if ($dump)
621 0 0 if (ref $args) { }
623 0 0 if ($source_name eq 'ARGV') { }
0 0 elsif (@{$args;}) { }
637 0 0 unless (grep {not $_->is_inverted;} @{$filters;})
658 0 0 unless ($noenv)
662 0 0 if ($ackrc)
665 0 0 if (open my $fh, '<', $ackrc) { }
681 0 0 if (@lines)
703 0 0 unless defined $file and -e $file
707 0 0 unless open my $fh, '<', $file
713 0 0 if $line eq ''
714 0 0 if $line =~ /^\s*#/
718 0 0 unless close $fh
736 0 0 if $i eq $j
737 0 0 if ($mutex->{$i}{$j})
813 0 0 length $arg == 1 ? :
824 0 0 if ($opt_spec =~ s/(=[si])$//)
827 0 0 if ($opt_spec =~ s/(:.+)$//)
833 0 0 if defined $type
834 0 0 if defined $default
835 0 0 if $negatable