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 2231 7755 391 $i >= 1 and ($p = $$tokens_ref[$i - 1])->[0] eq 'postchomp'
258 1251 9075 51 $i + 1 < @{$tokens_ref;} and ($p = $$tokens_ref[$i + 1])->[0] eq 'prechomp'
2729 7576 21 $i + 2 < @{$tokens_ref;} and ($p = $$tokens_ref[$i + 2])->[0] eq 'prechomp'
10305 0 21 $i + 2 < @{$tokens_ref;} and ($p = $$tokens_ref[$i + 2])->[0] eq 'prechomp' and ($p = $$tokens_ref[$i + 1])->[0] eq 'text'
7576 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 3438 defined $line_start && qr/\A ^ [ \t]* \Q$line_start\E ([^\n]* \n?) /msx
315 38 15554 0 $lex_line_code and @tokens == 0 || $tokens[-1][1] =~ /\n\z/msx
3409 9591 2554 $lex_line_code and @tokens == 0 || $tokens[-1][1] =~ /\n\z/msx and s/$lex_line_code//msx
695 61607 2953 7 defined $expect and $t->id ne $expect
714 41704 19376 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 2023 1435 $args{'file'} || \$input
206 0 3458 $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 3435 8710 3409 @tokens == 0 || $tokens[-1][1] =~ /\n\z/msx
1067 51 13192 571 $symbol->arity ne 'name' or $symbol->is_reserved
1163 1372 73 12618 $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