Branch Coverage

blib/lib/Regexp/Parser.pm
Criterion Covered Total %
branch 59 78 75.6


line true false branch
49 1 257 if defined $rx
57 7 435 if (defined $flags)
60 9 0 if ($self->can($method))
63 1 8 if ($ch eq "x" and $init_flags & $v)
88 25 417 if $@
103 0 853 if defined $rx
104 0 853 unless &RxLEN
112 44 11 if $self->{'stack'}
119 0 2 if $self->{'stack'}
126 1 0 if $self->{'stack'}
127 0 1 if $n
134 0 1 if $self->{'stack'}
135 0 1 if $name
142 0 6 /^\^(\S)/ ? :
178 0 0 if &SIZE_ONLY
191 0 2666 unless &RxLEN
194 1815 3792 if (defined(my $r = $self->$try))
200 1 824 if ${&Rx;} =~ / \G \) /cgx
201 0 824 if &RxPOS != &RxLEN
203 407 417 unless (&SIZE_ONLY)
214 0 18 unless &RxLEN
215 15 3 if $self->{'stack'}
217 14 4 unless defined $depth
223 4 132 if @_ and $_[0] eq "-depth"
224 0 132 if @_
228 110 132 if ref $next eq "CODE"
231 14 118 unless $next
233 117 1 wantarray ? :
240 335 0 if $self->{'stack'}
248 5 26 if $self->{'stack'}
253 6 25 if (@$rx == 1 and $rx->[0]->family eq "group")
269 4 4952 if (${&Rx;} =~ / \G \(\?\# [^)]* /cgx)
270 4 0 if ${&Rx;} =~ / \G \) /cgx
273 12 4940 if &Rf & $self->FLAG_x and ${&Rx;} =~ / \G (?: \s+ | \# .* )+ /cgx
279 1851 1803 if &SIZE_ONLY
286 0 2015 unless ref $_[0]
291 11 2004 if ($ref ne __PACKAGE__ and not $loaded{$class}++)
296 11 0 if $user_base
297 10 1 if $orig_base