Condition Coverage

blib/lib/Text/Xslate/Parser.pm
Criterion Covered Total %
condition 65 77 84.4


and 3 conditions

line !l l&&!r l&&r condition
246 2232 7753 391 $i >= 1 and ($p = $$tokens_ref[$i - 1])->[0] eq 'postchomp'
258 1249 9076 51 $i + 1 < @{$tokens_ref;} and ($p = $$tokens_ref[$i + 1])->[0] eq 'prechomp'
2731 7573 21 $i + 2 < @{$tokens_ref;} and ($p = $$tokens_ref[$i + 2])->[0] eq 'prechomp'
10304 0 21 $i + 2 < @{$tokens_ref;} and ($p = $$tokens_ref[$i + 2])->[0] eq 'prechomp' and ($p = $$tokens_ref[$i + 1])->[0] eq 'text'
7573 5 16 $i + 2 < @{$tokens_ref;} and ($p = $$tokens_ref[$i + 2])->[0] eq 'prechomp' and ($p = $$tokens_ref[$i + 1])->[0] eq 'text' and not $p->[1] =~ / [^ \t] /msx
300 20 0 3459 defined $line_start && qr/\A ^ [ \t]* \Q$line_start\E ([^\n]* \n?) /msx
315 38 15579 0 $lex_line_code and @tokens == 0 || $tokens[-1][1] =~ /\n\z/msx
3407 9611 2561 $lex_line_code and @tokens == 0 || $tokens[-1][1] =~ /\n\z/msx and s/$lex_line_code//msx
695 61705 2962 7 defined $expect and $t->id ne $expect
714 41753 19413 63 $arity eq 'name' and $parser->next_token_is('=>')
1610 0 14 16 defined $given->second and @{$given->second;}
1637 0 0 21 $s->arity eq 'literal' && $s->value =~ /\A [ \t\r\n]* \z/msx
1652 1 0 21 $when->id eq 'print_raw' and not grep({not _only_white_spaces($_);} @{$when->first;})
1974 0 1 12 defined $got and $got ne ';'
1991 8 2 39 $near ne ';' and not $message =~ /\b \Q$near\E \b/msx

or 2 conditions

line l !l condition
205 2022 1457 $args{'file'} || \$input
206 0 3479 $args{'line'} || 1
636 8435 19283 $lbp || 0
836 1205 5784 $led || \&Text::Xslate::Parser::led_infix
850 241 0 $led || \&Text::Xslate::Parser::led_infixr
860 964 964 $nud || \&Text::Xslate::Parser::nud_prefix
1990 26 1 $parser->near_token || ';'

or 3 conditions

line l !l&&r !l&&!r condition
315 3456 8716 3407 @tokens == 0 || $tokens[-1][1] =~ /\n\z/msx
1067 51 13192 571 $symbol->arity ne 'name' or $symbol->is_reserved
1163 1372 73 12638 $t->is_block_end or $parser->statement_is_finished
1723 1263 2 69 $t->arity ne 'name' or $t->is_defined
1990 22 27 0 $near ||= $parser->near_token || ';'
1994 5 44 0 $line || $parser->line