Branch Coverage

blib/lib/Text/Xslate/Syntax/TTerse.pm
Criterion Covered Total %
branch 48 54 88.8


line true false branch
88 2242 3953 if ($id =~ /\A [A-Z]+ \z/msx)
136 6 22 if ($t->id eq '{') { }
142 1 21 unless (any_in($t->arity, ('name', 'variable')))
169 5 50 if ($parser->token->id eq '$')
188 15 11 unless ($parser->find_or_create($name->id)->is_defined)
209 52 17 unless $is_modifier
213 7 62 if ($symbol->id eq 'UNLESS')
221 17 52 if ($is_modifier)
255 16 36 if ($t->id eq 'ELSE')
260 0 16 if ($t->id eq 'IF' and $t->line != $else_line)
266 0 16 $t->id eq 'IF' ? :
307 0 19 unless ($parser->in_given)
312 12 7 if ($parser->token->id ne 'DEFAULT') { }
333 0 35 unless (any_in($var->arity, ('variable', 'name')))
347 3 32 if ($parser->token->id eq 'ELSE')
388 9 19 if ($parser->token->id eq 'WITH')
404 39 45 unless (any_in($key->arity, ('variable', 'name')) and $parser->next_token_is('='))
415 3 42 if ($parser->token->id eq ',')
440 7 26 if ($is_default)
454 32 1 unless ($parser->find_or_create($name->id)->is_defined)
477 0 18 if ($name->arity ne 'variable')
490 11 7 if $paren
500 1 8 if ($t->id eq ',') { }
507 11 7 if $paren
528 1 9 if ($parser->token->id eq 'INTO') { }
530 0 1 unless (any_in($t->arity, ('name', 'variable')))
597 4 3 if ($filter->id eq 'html')