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 7756 391 $i >= 1 and ($p = $$tokens_ref[$i - 1])->[0] eq 'postchomp'
258 1252 9076 51 $i + 1 < @{$tokens_ref;} and ($p = $$tokens_ref[$i + 1])->[0] eq 'prechomp'
2730 7577 21 $i + 2 < @{$tokens_ref;} and ($p = $$tokens_ref[$i + 2])->[0] eq 'prechomp'
10307 0 21 $i + 2 < @{$tokens_ref;} and ($p = $$tokens_ref[$i + 2])->[0] eq 'prechomp' and ($p = $$tokens_ref[$i + 1])->[0] eq 'text'
7577 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 3439 defined $line_start && qr/\A ^ [ \t]* \Q$line_start\E ([^\n]* \n?) /msx
315 38 15557 0 $lex_line_code and @tokens == 0 || $tokens[-1][1] =~ /\n\z/msx
3411 9592 2554 $lex_line_code and @tokens == 0 || $tokens[-1][1] =~ /\n\z/msx and s/$lex_line_code//msx
695 61617 2953 7 defined $expect and $t->id ne $expect
714 41709 19380 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 2024 1435 $args{'file'} || \$input
206 0 3459 $args{'line'} || 1
636 8435 19280 $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 3436 8710 3411 @tokens == 0 || $tokens[-1][1] =~ /\n\z/msx
1067 51 13195 571 $symbol->arity ne 'name' or $symbol->is_reserved
1163 1372 73 12621 $t->is_block_end or $parser->statement_is_finished
1723 1262 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