Branch Coverage

blib/lib/Regexp/Parser.pm
Criterion Covered Total %
branch 56 76 73.6


line true false branch
49 1 228 if defined $rx
57 6 301 if (defined $flags)
60 7 0 if ($self->can($method))
82 25 282 if $@
96 0 583 if defined $rx
97 0 583 unless &RxLEN
105 1 9 if $self->{'stack'}
112 0 2 if $self->{'stack'}
119 1 0 if $self->{'stack'}
120 0 1 if $n
127 0 1 if $self->{'stack'}
128 0 1 if $name
135 0 6 /^\^(\S)/ ? :
171 0 0 if &SIZE_ONLY
184 0 1871 unless &RxLEN
187 1290 2735 if (defined(my $r = $self->$try))
193 1 554 if ${&Rx;} =~ / \G \) /cgx
194 0 554 if &RxPOS != &RxLEN
196 272 282 unless (&SIZE_ONLY)
207 0 17 unless &RxLEN
208 14 3 if $self->{'stack'}
210 13 4 unless defined $depth
216 4 130 if @_ and $_[0] eq "-depth"
217 0 130 if @_
221 110 130 if ref $next eq "CODE"
224 13 117 unless $next
226 117 0 wantarray ? :
233 248 0 if $self->{'stack'}
241 3 26 if $self->{'stack'}
246 6 23 if (@$rx == 1 and $rx->[0]->family eq "group")
262 4 3552 if (${&Rx;} =~ / \G \(\?\# [^)]* /cgx)
263 4 0 if ${&Rx;} =~ / \G \) /cgx
266 12 3540 if &Rf & $self->FLAG_x and ${&Rx;} =~ / \G (?: \s+ | \# .* )+ /cgx
272 1335 1287 if &SIZE_ONLY
279 0 1477 unless ref $_[0]
284 11 1466 if ($ref ne __PACKAGE__ and not $loaded{$class}++)
289 11 0 if $user_base
290 10 1 if $orig_base