Branch Coverage

blib/lib/Text/RewriteRules.pm
Criterion Covered Total %
branch 82 120 68.3


line true false branch
335 18 0 $pseudo_classes{$2} ? :
356 0 18 if ($DEBUG)
362 0 18 exists $$conf{'i'} ? :
363 2 16 exists $$conf{'x'} ? :
364 0 18 if (exists $$conf{'d'})
369 2 16 if ($DX eq 'x') { }
378 2 32 if ($rule =~ /(.*?)(=i?=>)(.*)!!(.*)/) { }
0 32 elsif ($rule =~ /(.*?)(=(?:i=)?e(?:val)?=>)(.*)!!(.*)/) { }
22 10 elsif ($rule =~ /(.*?)(=i?=>)(.*)/) { }
0 10 elsif ($rule =~ /=b(?:egin)?=>(.*)/s) { }
6 4 elsif ($rule =~ /(.*?)(=(?:i=)?e(?:val)?=>)(.*)/) { }
2 2 elsif ($rule =~ /(.*?)(=(?:i=)?l(?:ast)?=>\s*!!(.*))/s) { }
2 0 elsif ($rule =~ /(.*?)(=(?:i=)?l(?:ast)?=>)/s) { }
380 0 2 if $2 =~ /i/
394 0 0 if $2 =~ /i/
408 2 20 if $2 =~ /i/
424 2 4 if $2 =~ /i/
435 0 2 if $2 =~ /i/
447 0 2 if $2 =~ /i/
456 0 0 unless $rule =~ /^\s*(#|$)/
488 0 62 if $DEBUG > 1
494 4 58 exists $$conf{'i'} ? :
495 4 58 exists $$conf{'x'} ? :
496 0 62 if (exists $$conf{'d'})
501 4 58 if ($DX eq 'x') { }
512 4 70 if ($rule =~ /(.*?)(=i?=>)(.*)!!(.*)/s) { }
4 66 elsif ($rule =~ /(.*?)(=(?:i=)?e(?:val)?=>)(.*)!!(.*)/s) { }
50 16 elsif ($rule =~ /(.*?)(=i?=>)(.*)/s) { }
8 8 elsif ($rule =~ /(.*?)(=(?:i=)?e(?:val)?=>)(.*)/s) { }
2 6 elsif ($rule =~ /=b(?:egin)?=>(.*)/s) { }
2 4 elsif ($rule =~ /(.*?)(=(i=)?l(ast)?=>\s*!!(.*))/s) { }
4 0 elsif ($rule =~ /(.*?)(=(i=)?l(ast)?=>)/s) { }
514 2 2 if $2 =~ /i/
528 2 2 if $2 =~ /i/
542 8 42 if $2 =~ /i/
553 2 6 if $2 =~ /i/
569 0 2 if $2 =~ /i/
580 2 2 if $2 =~ /i/
588 0 0 unless $rule =~ /^\s*(#|$)/
614 0 8 if $DEBUG > 1
619 0 8 exists $$conf{'i'} ? :
620 2 6 exists $$conf{'x'} ? :
623 2 6 if ($DX eq 'x') { }
634 0 22 if ($rule =~ /=EOF=>(.*)/s) { }
2 20 elsif ($rule =~ /=EOF=e=>(.*)/s) { }
0 20 elsif ($rule =~ /(.*?)(=(?:i=)?ignore=>)(.*)!!(.*)/s) { }
4 16 elsif ($rule =~ /(.*?)(=(?:i=)?ignore=>)(.*)/s) { }
0 16 elsif ($rule =~ /(.*?)(=i?=>)(.*)!!(.*)/s) { }
0 16 elsif ($rule =~ /(.*?)(=(?:i=)?e(?:val)?=>)(.*)!!(.*)/s) { }
4 12 elsif ($rule =~ /(.*?)(=i?=>)(.*)/s) { }
12 0 elsif ($rule =~ /(.*?)(=(?:i=)?e(?:val)?=>)(.*)/s) { }
652 0 0 if $2 =~ /i/
665 4 0 if $2 =~ /i/
676 0 0 if $2 =~ /i/
689 0 0 if $2 =~ /i/
703 0 4 if $2 =~ /i/
714 0 12 if $2 =~ /i/
724 0 0 unless $rule =~ /^\s*(#|$)/
791 4 33 if (exists $$conf{'l'}) { }
2 31 elsif (exists $$conf{'m'}) { }