Branch Coverage

blib/lib/YAPE/Regex/Explain.pm
Criterion Covered Total %
branch 44 248 17.7


line true false branch
131 1 2 unless $using_rex
143 1 1 $using_rex eq 'regex' ? :
1 2 $using_rex eq 'silent' ? :
164 0 9 if $ng
165 0 9 if ($q =~ /\{(\d*)(,?(\d*))\}/)
166 0 0 if ($2 and length $3) { }
0 0 elsif ($2) { }
0 0 elsif (length $1) { }
171 3 6 if ($q)
173 0 3 $ng ? :
3 0 unless $q =~ /^\d+ times$/
175 3 0 if $q
190 2 0 if index($modes{'on'}, $_) == -1
194 2 1 if length $on
197 10 0 if index($modes{'off'}, $_) == -1
201 3 0 if length $off
205 2 1 if ($modes{'on'} ne $prev_on)
209 3 0 if ($modes{'off'} ne $prev_off)
220 0 0 if $type eq '^' || $type eq '$' and $modes{'on'} =~ /m/
227 0 0 if ($using_rex ne 'silent') { }
228 0 0 $using_rex ? :
239 2 1 if ($using_rex ne 'silent') { }
2 1 $using_rex ? :
250 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
261 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
272 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
283 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
294 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
305 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
317 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
324 0 0 if $modes{'on'} =~ /s/
329 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
346 2 1 if ($using_rex)
354 2 1 if ($using_rex ne 'silent') { }
2 1 $using_rex ? :
366 0 0 if $using_rex
367 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
380 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
387 0 0 if $$self{'NEG'} =~ /[pP]/
390 0 0 $$self{'NEG'} eq '^' ? :
395 0 0 if ($name) { }
0 0 elsif ($utf8) { }
0 0 elsif ($posix) { }
406 0 0 if $pP eq 'P'
412 0 0 if $neg
424 0 0 if (not $utf8 || $posix || $c1 =~ /\\[wWdDsS]/ and $class =~ s/^-$cc_REx//)
427 0 0 if $utf8 or $posix or $c2 =~ /\\[wWdDsS]/
429 0 0 if ($name) { }
443 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
455 0 0 if ($using_rex)
456 0 0 unless $$self{'ON'} =~ /x/
464 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
473 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
482 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
488 2 1 if ($using_rex)
489 2 0 unless $$self{'ON'} =~ /x/
499 2 1 if ($using_rex ne 'silent') { }
2 1 $using_rex ? :
505 2 1 if $using_rex
514 2 1 if ($using_rex ne 'silent') { }
2 1 $using_rex ? :
527 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
534 0 0 if $using_rex
540 0 0 if $self->quant
547 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
559 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
565 0 0 if $using_rex
574 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
581 0 0 unless (@{$$self{'CONTENT'};})
582 0 0 $$self{'POS'} ? :
587 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
591 0 0 $$self{'POS'} ? :
598 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
604 0 0 if $using_rex
612 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
618 0 0 $$self{'POS'} ? :
625 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
631 0 0 if $using_rex
639 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :
647 0 0 if (ref $$self{'CONTENT'}) { }
653 0 0 if ($using_rex ne 'silent') { }
654 0 0 $using_rex ? :
658 0 0 if $using_rex
662 0 0 if $using_rex
665 0 0 if ($using_rex ne 'silent') { }
666 0 0 $using_rex ? :
676 0 0 if ($using_rex ne 'silent') { }
677 0 0 $using_rex ? :
684 0 0 if $using_rex
688 0 0 unless (@{$$self{'TRUE'};})
691 0 0 if ($using_rex ne 'silent') { }
692 0 0 $using_rex ? :
699 0 0 if $using_rex
703 0 0 if ($using_rex ne 'silent') { }
704 0 0 $using_rex ? :
711 0 0 unless (@{$$self{'FALSE'};})
714 0 0 if ($using_rex ne 'silent') { }
715 0 0 $using_rex ? :
720 0 0 ref $$self{'CONTENT'} ? :
726 0 0 if ($using_rex ne 'silent') { }
0 0 $using_rex ? :