Condition Coverage

blib/lib/Template/Mustache/Parser.pm
Criterion Covered Total %
condition 178 423 42.0


and 3 conditions

line !l l&&!r l&&r condition
626 0 286 0 not defined $return and defined $score
721 0 0 56 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
779 0 19 32 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ m[\A/]
806 0 0 32 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
834 0 0 32 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and do { $_tok = "$arg[0]"; 1 }
0 10 22 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and do { $_tok = "$arg[0]"; 1 } and substr($text, 0, length $_tok) eq $_tok
10 0 22 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and do { $_tok = "$arg[0]"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ''; 1 }
862 0 0 22 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
919 0 0 22 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
999 0 22 0 not defined $return and defined $score
1095 0 0 124 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and do { $_tok = "$thisparser->{'closing_tag'}"; 1 }
0 0 124 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and do { $_tok = "$thisparser->{'closing_tag'}"; 1 } and substr($text, 0, length $_tok) eq $_tok
0 0 124 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and do { $_tok = "$thisparser->{'closing_tag'}"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ''; 1 }
1140 0 124 0 not defined $return and defined $score
1308 0 3 0 not defined $return and defined $score
1404 0 80 3 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A\!/
1453 0 0 3 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:.*?(?=\Q$item[2]\E))/s
1497 0 3 0 not defined $return and defined $score
1669 0 0 0 not defined $return and defined $score
1765 0 83 2 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A\=/
1816 0 0 2 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
1843 0 0 2 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:.*?(?=\=\Q$item[2]\E))/s
1871 0 0 2 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A\=/
1939 0 2 0 not defined $return and defined $score
2034 0 5 65 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:^\Z)/
2078 0 65 0 not defined $return and defined $score
2250 0 27 0 not defined $return and defined $score
2345 0 0 272 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
2402 0 77 19 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:[#^])/
2429 0 0 19 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
2456 0 1 18 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:[-\w.]+)/
2483 0 0 18 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
2540 0 0 18 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
2621 0 18 0 not defined $return and defined $score
2717 0 0 1904 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and do { $_tok = "$thisparser->{'opening_tag'}"; 1 }
0 1237 667 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and do { $_tok = "$thisparser->{'opening_tag'}"; 1 } and substr($text, 0, length $_tok) eq $_tok
1237 0 667 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and do { $_tok = "$thisparser->{'opening_tag'}"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ''; 1 }
2762 0 667 0 not defined $return and defined $score
2857 0 0 288 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
2915 0 96 16 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A\>/
2942 0 0 16 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
2969 0 0 16 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ m[\A(?:[/-\w.]+)]
2996 0 0 16 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
3053 0 0 16 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
3139 0 16 0 not defined $return and defined $score
3424 0 11 0 not defined $return and defined $score
3519 0 0 520 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
3576 0 0 168 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
3663 0 0 5 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
3742 0 5 0 not defined $return and defined $score
4025 0 65 0 not defined $return and defined $score
4191 0 286 0 not defined $return and defined $score
4286 0 0 256 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
4344 0 80 0 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A\{/
4371 0 0 0 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
4428 0 0 0 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
4456 0 0 0 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A\}/
4562 0 0 0 not defined $return and defined $score
4657 0 0 256 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
4715 0 80 0 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A\&/
4742 0 0 0 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
4799 0 0 0 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
4905 0 0 0 not defined $return and defined $score
5000 0 0 256 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
5057 0 0 80 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
5114 0 0 63 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\s*)/
5218 0 63 0 not defined $return and defined $score
5313 0 17 63 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:[-\w.]+)/
5357 0 63 0 not defined $return and defined $score
5474 0 0 193 $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:^\s*\S*?(?=\Q$item[1]\E|\s|$))/
5543 0 193 0 not defined $return and defined $score

or 2 conditions

line l !l condition
42 288 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
657 56 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
1030 124 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
1171 259 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
1339 83 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
1528 261 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
1700 85 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
1970 70 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
2109 38 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
2281 272 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
2652 1904 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
2793 288 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
3170 272 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
3455 520 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
3773 0 72 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
4056 288 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
4222 256 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
4593 256 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
4936 256 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
5249 80 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
5388 193 0 $Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0

or 3 conditions

line l !l&&r !l&&!r condition
82 0 0 288 $_matched or $commit
141 16 0 272 $_matched or $commit
200 27 0 261 $_matched or $commit
259 27 0 259 $_matched or $commit
318 30 0 256 $_matched or $commit
377 30 0 256 $_matched or $commit
436 30 0 256 $_matched or $commit
495 93 0 193 $_matched or $commit
614 286 0 0 $_matched or defined $score
697 0 0 56 $_matched or $commit
948 0 0 11 $item[1] =~ /\n/ or $prev
949 0 0 0 $item[8] =~ /\n/ or length $text == 0
987 22 0 34 $_matched or defined $score
1070 0 0 124 $_matched or $commit
1128 124 0 0 $_matched or defined $score
1211 0 0 259 $_matched or $commit
1296 3 0 256 $_matched or defined $score
1379 0 0 83 $_matched or $commit
1485 3 0 80 $_matched or defined $score
1568 0 0 261 $_matched or $commit
1657 0 0 259 $_matched or defined $score
1740 0 0 85 $_matched or $commit
1927 2 0 83 $_matched or defined $score
2010 0 0 70 $_matched or $commit
2066 65 0 5 $_matched or defined $score
2149 0 0 38 $_matched or $commit
2238 27 0 11 $_matched or defined $score
2321 0 0 272 $_matched or $commit
2569 2 9 7 $item[1] =~ /\n/ or $prev
2609 18 0 254 $_matched or defined $score
2692 0 0 1904 $_matched or $commit
2750 667 0 1237 $_matched or defined $score
2833 0 0 288 $_matched or $commit
3083 0 2 14 $item[1] =~ /\n/ or $prev
3084 0 2 0 $item[8] =~ /\n/ or length $text == 0
3127 16 0 272 $_matched or defined $score
3210 0 0 272 $_matched or $commit
3412 11 0 261 $_matched or defined $score
3495 0 0 520 $_matched or $commit
3693 1 3 1 $item[1] =~ /\n/ or $prev
3694 2 2 0 $item[6] =~ /\n/ or length $text == 0
3730 5 0 515 $_matched or defined $score
3813 0 0 72 $_matched or $commit
4013 65 0 5 $_matched or defined $score
4096 0 0 288 $_matched or $commit
4179 286 0 0 $_matched or defined $score
4262 0 0 256 $_matched or $commit
4550 0 0 256 $_matched or defined $score
4633 0 0 256 $_matched or $commit
4893 0 0 256 $_matched or defined $score
4976 0 0 256 $_matched or $commit
5206 63 0 193 $_matched or defined $score
5289 0 0 80 $_matched or $commit
5345 63 0 17 $_matched or defined $score
5428 0 0 193 $_matched or $commit
5531 193 0 0 $_matched or defined $score