Branch Coverage

blib/lib/Complete/Bash/History.pm
Criterion Covered Total %
branch 0 32 0.0


line true false branch
112 0 0 unless my $fh = 'File::ReadBackwards'->new($path)
126 0 0 if ($res->{'word_type'} eq 'opt_val') { }
0 0 elsif ($res->{'word_type'} eq 'opt_name') { }
0 0 elsif ($res->{'word_type'} =~ /\Aarg,(\d+)\z/) { }
148 0 0 if $line =~ /^#\d+$/
150 0 0 if $max_hist_lines >= 0 and $num_hist_lines++ >= $max_hist_lines
153 0 0 unless @$hwords
166 0 0 if ($hwords->[0] =~ /\A[A-Za-z_][A-Za-z0-9_]*=/)
172 0 0 unless @$hwords
176 0 0 unless $hcmd eq $cmd
180 0 0 if ($which eq 'opt_name')
182 0 0 length $_ > 1 ? :
187 0 0 if ($which eq 'opt_val')
189 0 0 unless defined $_
195 0 0 if ($which eq 'arg')
196 0 0 unless @{$hpo->{'argv'};} > $pos