Condition Coverage

lib/Type/Parser.pm
Criterion Covered Total %
condition 59 69 85.5


and 3 conditions

line !l l&&!r l&&r condition
117 0 158 8 $node->{'type'} eq "primary" and $node->{'token'}->type eq "CLASS"
126 0 146 12 $node->{'type'} eq "primary" and $node->{'token'}->type eq "QUOTELIKE"
130 0 140 6 $node->{'type'} eq "primary" and $node->{'token'}->type eq "STRING"
134 0 137 3 $node->{'type'} eq "primary" and $node->{'token'}->type eq "HEXNUM"
146 0 0 137 $node->{'type'} eq "primary" and $node->{'token'}->type eq "TYPE"
160 274 28 10 $expr->{'type'} eq "expression" and $expr->{'op'}[0] eq "COMMA"
164 274 10 18 $expr->{'type'} eq "expression" and $expr->{'op'}[0] eq "UNION"
168 274 2 8 $expr->{'type'} eq "expression" and $expr->{'op'}[0] eq "INTERSECT"
172 274 0 2 $expr->{'type'} eq "expression" and $expr->{'op'}[0] eq "SLASH"
186 83 7 14 $expr->{'type'} eq "expression" and $expr->{'op'}[0] eq $op
252 23 150 426 $tokens->peek(1) and $tokens->peek(0)->type eq "TYPE"
173 209 217 $tokens->peek(1) and $tokens->peek(0)->type eq "TYPE" and $tokens->peek(1)->type eq "L_BRACKET"
300 177 229 202 not $tokens->empty and defined $precedence{$tokens->peek(0)->type}
406 0 202 not $tokens->empty and defined $precedence{$tokens->peek(0)->type} and $precedence{$tokens->peek(0)->type} >= $min_p
307 13 120 72 not $tokens->empty and defined $precedence{$tokens->peek(0)->type}
133 69 3 not $tokens->empty and defined $precedence{$tokens->peek(0)->type} and $precedence{$tokens->peek(0)->type} > $precedence{$op->type}
379 6372 213 1264 $self->_stack_size <= $ahead and length $self->{'remaining'}
404 581 675 0 @_ and $_[0] ne $r->type

or 3 conditions

line l !l&&r !l&&!r condition
112 51 0 2 $base->is_parameterizable or $node->{'params'}
280 227 130 25 $type eq "TYPE" or $type eq "QUOTELIKE"
357 9 16 $type eq "TYPE" or $type eq "QUOTELIKE" or $type eq "STRING"
139 3 13 $type eq "TYPE" or $type eq "QUOTELIKE" or $type eq "STRING" or $type eq "HEXNUM"
12 10 3 $type eq "TYPE" or $type eq "QUOTELIKE" or $type eq "STRING" or $type eq "HEXNUM" or $type eq "CLASS"