Branch Coverage

blib/lib/Regexp/Parser.pm
Criterion Covered Total %
branch 43 68 63.2


line true false branch
49 0 9 if defined $rx
72 11 17 if $@
86 0 42 if defined $rx
87 0 42 unless &RxLEN
95 1 1 if $self->{'stack'}
102 0 0 if $self->{'stack'}
109 1 0 if $self->{'stack'}
110 0 1 if $n
117 0 2 /^\^(\S)/ ? :
153 0 0 if &SIZE_ONLY
166 0 179 unless &RxLEN
169 137 386 if (defined(my $r = $self->$try))
175 0 31 if ${&Rx;} =~ / \G \) /cgx
176 0 31 if &RxPOS != &RxLEN
178 14 17 unless (&SIZE_ONLY)
189 0 11 unless &RxLEN
190 8 3 if $self->{'stack'}
192 7 4 unless defined $depth
198 4 119 if @_ and $_[0] eq '-depth'
199 0 119 if @_
203 110 119 if ref $next eq 'CODE'
206 11 108 unless $next
208 108 0 wantarray ? :
215 4 0 if $self->{'stack'}
223 0 17 if $self->{'stack'}
228 0 17 if (@$rx == 1 and $rx->[0]->family eq 'group')
242 0 455 if (${&Rx;} =~ / \G \(\?\# [^)]* /cgx)
243 0 0 if ${&Rx;} =~ / \G \) /cgx
246 0 455 if &Rf & $self->FLAG_x and ${&Rx;} =~ / \G (?: \s+ | \# .* )+ /cgx
252 203 178 if &SIZE_ONLY
259 0 185 unless ref $_[0]
264 11 174 if ($ref ne 'Regexp::Parser' and not $loaded{$class}++)
269 11 0 if $user_base
270 10 1 if $orig_base