Branch Coverage

blib/lib/File/CodeSearch/RegexBuilder.pm
Criterion Covered Total %
branch 46 46 100.0


line true false branch
88 4517 33 if ref $self->regex eq 'Regexp'
94 1 32 unless defined $start
96 29 3 unless (&any(sub { $start eq $_; } , 'n', 'b', 'ss'))
101 5 27 if ($self->whole)
105 4 28 if ($self->all) { }
2 26 elsif ($self->words) { }
106 3 1 if (@{$words;} == 2) { }
120 1 31 if ($self->ignore_case)
125 1 1 $start eq 'b' ? :
1 2 $start eq 'n' ? :
29 3 !defined($start) ? :
142 3311 1207 if (defined $match)
156 1 4522 if $self->sub_match
157 1 4521 if $self->sub_not_match
161 1 2 if $match
168 1 2 if $not_match
179 12 4506 if ($self->last)
181 6 3 $last eq 'sub' ? :
6 9 $last eq 'class' ? :
3 15 $last eq 'function' ? :
186 6 12 if $match
197 1 4 unless %{$self->lasts;}
208 22 6 if ($self->current_count and $self->current_file)