Condition Coverage

blib/lib/HTML/Transmorgify/Conditionals.pm
Criterion Covered Total %
condition 260 783 33.2


and 3 conditions

line !l l&&!r l&&r condition
129 0 13 0 defined $_[2] && $_[2]
130 0 13 0 defined $_[3] && $_[3]
355 0 13 0 not defined $return and defined $score
407 0 50 0 defined $_[2] && $_[2]
408 0 50 0 defined $_[3] && $_[3]
446 0 45 5 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ m[\A(?:(\*|/|%|x))]
510 0 5 0 not defined $return and defined $score
562 0 50 0 defined $_[2] && $_[2]
563 0 50 0 defined $_[3] && $_[3]
602 0 50 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A\-/
774 0 50 0 not defined $return and defined $score
826 0 32 0 defined $_[2] && $_[2]
827 0 32 0 defined $_[3] && $_[3]
1052 0 32 0 not defined $return and defined $score
1104 0 45 0 defined $_[2] && $_[2]
1105 0 45 0 defined $_[3] && $_[3]
1330 0 45 0 not defined $return and defined $score
1382 0 32 0 defined $_[2] && $_[2]
1383 0 32 0 defined $_[3] && $_[3]
1608 0 32 0 not defined $return and defined $score
1660 0 43 0 defined $_[2] && $_[2]
1661 0 43 0 defined $_[3] && $_[3]
1699 0 40 3 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:(<|>|<=|>=|lt|gt|le|ge))/
1763 0 3 0 not defined $return and defined $score
1815 0 32 0 defined $_[2] && $_[2]
1816 0 32 0 defined $_[3] && $_[3]
2041 0 32 0 not defined $return and defined $score
2093 0 13 0 defined $_[2] && $_[2]
2094 0 13 0 defined $_[3] && $_[3]
2133 0 13 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = 'not'; 1 }
0 7 6 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = 'not'; 1 } and substr($text, 0, length $_tok) eq $_tok
7 6 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = 'not'; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ''; 1 }
2306 0 13 0 not defined $return and defined $score
2358 0 43 0 defined $_[2] && $_[2]
2359 0 43 0 defined $_[3] && $_[3]
2584 0 43 0 not defined $return and defined $score
2636 0 16 0 defined $_[2] && $_[2]
2637 0 16 0 defined $_[3] && $_[3]
2706 0 16 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = '?'; 1 }
0 13 3 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = '?'; 1 } and substr($text, 0, length $_tok) eq $_tok
13 3 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = '?'; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ''; 1 }
2764 0 3 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = ':'; 1 }
0 0 3 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = ':'; 1 } and substr($text, 0, length $_tok) eq $_tok
0 3 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = ':'; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ''; 1 }
2937 0 16 0 not defined $return and defined $score
2989 0 43 0 defined $_[2] && $_[2]
2990 0 43 0 defined $_[3] && $_[3]
3028 0 43 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:(<<|>>))/
3092 0 0 0 not defined $return and defined $score
3144 0 32 0 defined $_[2] && $_[2]
3145 0 32 0 defined $_[3] && $_[3]
3184 0 32 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = '&&'; 1 }
0 32 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = '&&'; 1 } and substr($text, 0, length $_tok) eq $_tok
32 0 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = '&&'; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ''; 1 }
3248 0 0 0 not defined $return and defined $score
3300 0 0 0 defined $_[2] && $_[2]
3301 0 0 0 defined $_[3] && $_[3]
3339 0 0 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:] | '[^'<>]*' | "[^"<>]*" )* >)/x
3411 0 0 0 not defined $return and defined $score
3463 0 50 0 defined $_[2] && $_[2]
3464 0 50 0 defined $_[3] && $_[3]
3502 0 50 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:(=~|\!~))/
3566 0 0 0 not defined $return and defined $score
3618 0 32 0 defined $_[2] && $_[2]
3619 0 32 0 defined $_[3] && $_[3]
3657 0 32 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:(\&))/
3721 0 0 0 not defined $return and defined $score
3773 0 40 0 defined $_[2] && $_[2]
3774 0 40 0 defined $_[3] && $_[3]
3812 0 32 8 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:(==|\!=|<=>|eq|ne|cmp))/
3876 0 8 0 not defined $return and defined $score
3928 0 0 0 defined $_[2] && $_[2]
3929 0 0 0 defined $_[3] && $_[3]
3967 0 0 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:[A-Za-z_](?:\w|::(?=[^:]))*)/
3995 0 0 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A\(/
4077 0 0 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:,)/
4169 0 0 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A\)/
4238 0 0 0 not defined $return and defined $score
4290 0 32 0 defined $_[2] && $_[2]
4291 0 32 0 defined $_[3] && $_[3]
4330 0 32 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = '||'; 1 }
0 32 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = '||'; 1 } and substr($text, 0, length $_tok) eq $_tok
32 0 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = '||'; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ''; 1 }
4394 0 0 0 not defined $return and defined $score
4446 0 52 0 defined $_[2] && $_[2]
4447 0 52 0 defined $_[3] && $_[3]
4486 0 50 2 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A\(/
4543 0 0 2 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A\)/
4843 52 0 0 not defined $return and defined $score
4895 0 43 0 defined $_[2] && $_[2]
4896 0 43 0 defined $_[3] && $_[3]
5121 0 43 0 not defined $return and defined $score
5173 0 52 0 defined $_[2] && $_[2]
5174 0 52 0 defined $_[3] && $_[3]
5212 0 50 2 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:(\*\*))/
5276 0 2 0 not defined $return and defined $score
5328 0 50 0 defined $_[2] && $_[2]
5329 0 50 0 defined $_[3] && $_[3]
5554 0 50 0 not defined $return and defined $score
5606 0 13 0 defined $_[2] && $_[2]
5607 0 13 0 defined $_[3] && $_[3]
5832 0 13 0 not defined $return and defined $score
5884 0 40 0 defined $_[2] && $_[2]
5885 0 40 0 defined $_[3] && $_[3]
6110 0 40 0 not defined $return and defined $score
6162 0 50 0 defined $_[2] && $_[2]
6163 0 50 0 defined $_[3] && $_[3]
6388 0 50 0 not defined $return and defined $score
6440 0 13 0 defined $_[2] && $_[2]
6441 0 13 0 defined $_[3] && $_[3]
6480 0 13 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = 'and'; 1 }
0 13 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = 'and'; 1 } and substr($text, 0, length $_tok) eq $_tok
13 0 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = 'and'; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ''; 1 }
6544 0 0 0 not defined $return and defined $score
6596 0 13 0 defined $_[2] && $_[2]
6597 0 13 0 defined $_[3] && $_[3]
6635 0 13 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:or|xor)/
6699 0 0 0 not defined $return and defined $score
6751 0 32 0 defined $_[2] && $_[2]
6752 0 32 0 defined $_[3] && $_[3]
6977 0 32 0 not defined $return and defined $score
7029 0 50 0 defined $_[2] && $_[2]
7030 0 50 0 defined $_[3] && $_[3]
7068 0 0 50 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?: -? (?: \d+ (?: \.\d+ )? | (?: \.\d+) ) (?:[eE]-?\d+)? )/x
7145 0 0 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = q[']; 1 }
0 0 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = q[']; 1 } and substr($text, 0, length $_tok) eq $_tok
0 0 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = q[']; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ''; 1 }
7172 0 0 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:[^"]*)/
7200 0 0 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A\"/
7276 0 0 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A\"/
7302 0 0 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:[^']*)/
7330 0 0 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = q[']; 1 }
0 0 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = q[']; 1 } and substr($text, 0, length $_tok) eq $_tok
0 0 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and do { $_tok = q[']; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ''; 1 }
7394 0 50 0 not defined $return and defined $score
7446 0 32 0 defined $_[2] && $_[2]
7447 0 32 0 defined $_[3] && $_[3]
7485 0 32 0 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:(\||\^))/
7549 0 0 0 not defined $return and defined $score
7601 11 0 0 defined $_[2] && $_[2]
7602 11 0 0 defined $_[3] && $_[3]
7670 0 0 11 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\Z)/
7734 0 11 0 not defined $return and defined $score
7786 0 45 0 defined $_[2] && $_[2]
7787 0 45 0 defined $_[3] && $_[3]
7825 0 43 2 $text =~ s/\A($Parse::RecDescent::HTML::Transmorgify::Conditionals::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:(\+|-|\.))/
7889 0 2 0 not defined $return and defined $score
7941 0 32 0 defined $_[2] && $_[2]
7942 0 32 0 defined $_[3] && $_[3]
8167 0 32 0 not defined $return and defined $score

or 2 conditions

line l !l condition
108 13 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
307 13 0 $_tok || []
386 50 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
541 50 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
805 32 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
1004 32 0 $_tok || []
1083 45 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
1282 45 0 $_tok || []
1361 32 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
1560 32 0 $_tok || []
1639 43 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
1794 32 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
1993 32 0 $_tok || []
2072 13 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
2337 43 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
2536 43 0 $_tok || []
2615 16 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
2968 43 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
3123 32 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
3279 0 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
3442 50 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
3597 32 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
3752 40 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
3907 0 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
4157 0 0 $_tok || []
4269 32 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
4425 52 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
4874 43 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
5073 43 0 $_tok || []
5152 52 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
5307 50 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
5506 50 0 $_tok || []
5585 13 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
5784 13 0 $_tok || []
5863 40 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
6062 40 0 $_tok || []
6141 50 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
6340 50 0 $_tok || []
6419 13 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
6575 13 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
6730 32 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
6929 32 0 $_tok || []
7008 50 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
7425 32 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
7580 0 11 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
7765 45 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
7920 32 0 $Parse::RecDescent::HTML::Transmorgify::Conditionals::tracelevel || 0
8119 32 0 $_tok || []

or 3 conditions

line l !l&&r !l&&!r condition
36 0 0 0 $$allowed_funcs{$op} ||= eval $eval
48 5 1 0 $$allowed_funcs{$op} ||= eval $eval
61 15 5 0 $$allowed_funcs{$op} ||= eval $eval
144 0 0 13 $_matched or $commit
343 13 0 0 $_matched or defined $score
422 0 0 50 $_matched or $commit
498 5 0 45 $_matched or defined $score
577 0 0 50 $_matched or $commit
683 0 0 50 $_matched or $commit
762 50 0 0 $_matched or defined $score
841 0 0 32 $_matched or $commit
1040 32 0 0 $_matched or defined $score
1119 0 0 45 $_matched or $commit
1318 45 0 0 $_matched or defined $score
1397 0 0 32 $_matched or $commit
1596 32 0 0 $_matched or defined $score
1675 0 0 43 $_matched or $commit
1751 3 0 40 $_matched or defined $score
1830 0 0 32 $_matched or $commit
2029 32 0 0 $_matched or defined $score
2108 0 0 13 $_matched or $commit
2215 6 0 7 $_matched or $commit
2294 13 0 0 $_matched or defined $score
2373 0 0 43 $_matched or $commit
2572 43 0 0 $_matched or defined $score
2651 0 0 16 $_matched or $commit
2846 3 0 13 $_matched or $commit
2925 16 0 0 $_matched or defined $score
3004 0 0 43 $_matched or $commit
3080 0 0 43 $_matched or defined $score
3159 0 0 32 $_matched or $commit
3236 0 0 32 $_matched or defined $score
3315 0 0 0 $_matched or $commit
3399 0 0 0 $_matched or defined $score
3478 0 0 50 $_matched or $commit
3554 0 0 50 $_matched or defined $score
3633 0 0 32 $_matched or $commit
3709 0 0 32 $_matched or defined $score
3788 0 0 40 $_matched or $commit
3864 8 0 32 $_matched or defined $score
3943 0 0 0 $_matched or $commit
4226 0 0 0 $_matched or defined $score
4305 0 0 32 $_matched or $commit
4382 0 0 32 $_matched or defined $score
4461 0 0 52 $_matched or $commit
4594 2 0 50 $_matched or $commit
4673 52 0 0 $_matched or $commit
4752 52 0 0 $_matched or $commit
4831 52 0 0 $_matched or defined $score
4910 0 0 43 $_matched or $commit
5109 43 0 0 $_matched or defined $score
5188 0 0 52 $_matched or $commit
5264 2 0 50 $_matched or defined $score
5343 0 0 50 $_matched or $commit
5542 50 0 0 $_matched or defined $score
5621 0 0 13 $_matched or $commit
5820 13 0 0 $_matched or defined $score
5899 0 0 40 $_matched or $commit
6098 40 0 0 $_matched or defined $score
6177 0 0 50 $_matched or $commit
6376 50 0 0 $_matched or defined $score
6455 0 0 13 $_matched or $commit
6532 0 0 13 $_matched or defined $score
6611 0 0 13 $_matched or $commit
6687 0 0 13 $_matched or defined $score
6766 0 0 32 $_matched or $commit
6965 32 0 0 $_matched or defined $score
7044 0 0 50 $_matched or $commit
7120 50 0 0 $_matched or $commit
7251 50 0 0 $_matched or $commit
7382 50 0 0 $_matched or defined $score
7461 0 0 32 $_matched or $commit
7537 0 0 32 $_matched or defined $score
7616 0 0 11 $_matched or $commit
7722 11 0 0 $_matched or defined $score
7801 0 0 45 $_matched or $commit
7877 2 0 43 $_matched or defined $score
7956 0 0 32 $_matched or $commit
8155 32 0 0 $_matched or defined $score