Branch Coverage

blib/lib/Regexp/Parser.pm
Criterion Covered Total %
branch 58 78 74.3


line true false branch
49 1 230 if defined $rx
57 7 374 if (defined $flags)
60 9 0 if ($self->can($method))
63 1 8 if ($ch eq "x" and $init_flags & $v)
87 25 356 if $@
101 0 731 if defined $rx
102 0 731 unless &RxLEN
110 30 11 if $self->{'stack'}
117 0 2 if $self->{'stack'}
124 1 0 if $self->{'stack'}
125 0 1 if $n
132 0 1 if $self->{'stack'}
133 0 1 if $name
140 0 6 /^\^(\S)/ ? :
176 0 0 if &SIZE_ONLY
189 0 2319 unless &RxLEN
192 1590 3325 if (defined(my $r = $self->$try))
198 1 702 if ${&Rx;} =~ / \G \) /cgx
199 0 702 if &RxPOS != &RxLEN
201 346 356 unless (&SIZE_ONLY)
212 0 17 unless &RxLEN
213 14 3 if $self->{'stack'}
215 13 4 unless defined $depth
221 4 130 if @_ and $_[0] eq "-depth"
222 0 130 if @_
226 110 130 if ref $next eq "CODE"
229 13 117 unless $next
231 117 0 wantarray ? :
238 291 0 if $self->{'stack'}
246 3 26 if $self->{'stack'}
251 6 23 if (@$rx == 1 and $rx->[0]->family eq "group")
267 4 4518 if (${&Rx;} =~ / \G \(\?\# [^)]* /cgx)
268 4 0 if ${&Rx;} =~ / \G \) /cgx
271 12 4506 if &Rf & $self->FLAG_x and ${&Rx;} =~ / \G (?: \s+ | \# .* )+ /cgx
277 1635 1587 if &SIZE_ONLY
284 0 1781 unless ref $_[0]
289 11 1770 if ($ref ne __PACKAGE__ and not $loaded{$class}++)
294 11 0 if $user_base
295 10 1 if $orig_base