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 232 12 $node->{'type'} eq "primary" and $node->{'token'}->type eq "CLASS"
126 0 220 12 $node->{'type'} eq "primary" and $node->{'token'}->type eq "QUOTELIKE"
130 0 214 6 $node->{'type'} eq "primary" and $node->{'token'}->type eq "STRING"
134 0 211 3 $node->{'type'} eq "primary" and $node->{'token'}->type eq "HEXNUM"
146 0 0 211 $node->{'type'} eq "primary" and $node->{'token'}->type eq "TYPE"
160 378 49 10 $expr->{'type'} eq "expression" and $expr->{'op'}[0] eq "COMMA"
164 378 10 39 $expr->{'type'} eq "expression" and $expr->{'op'}[0] eq "UNION"
168 378 2 8 $expr->{'type'} eq "expression" and $expr->{'op'}[0] eq "INTERSECT"
172 378 0 2 $expr->{'type'} eq "expression" and $expr->{'op'}[0] eq "SLASH"
186 125 7 14 $expr->{'type'} eq "expression" and $expr->{'op'}[0] eq $op
252 54 175 563 $tokens->peek(1) and $tokens->peek(0)->type eq "TYPE"
229 298 265 $tokens->peek(1) and $tokens->peek(0)->type eq "TYPE" and $tokens->peek(1)->type eq "L_BRACKET"
300 254 277 270 not $tokens->empty and defined $precedence{$tokens->peek(0)->type}
531 0 270 not $tokens->empty and defined $precedence{$tokens->peek(0)->type} and $precedence{$tokens->peek(0)->type} >= $min_p
307 34 154 85 not $tokens->empty and defined $precedence{$tokens->peek(0)->type}
188 82 3 not $tokens->empty and defined $precedence{$tokens->peek(0)->type} and $precedence{$tokens->peek(0)->type} > $precedence{$op->type}
379 8253 342 1621 $self->_stack_size <= $ahead and length $self->{'remaining'}
404 794 819 0 @_ and $_[0] ne $r->type

or 3 conditions

line l !l&&r !l&&!r condition
112 64 0 2 $base->is_parameterizable or $node->{'params'}
280 345 153 29 $type eq "TYPE" or $type eq "QUOTELIKE"
498 9 20 $type eq "TYPE" or $type eq "QUOTELIKE" or $type eq "STRING"
162 3 17 $type eq "TYPE" or $type eq "QUOTELIKE" or $type eq "STRING" or $type eq "HEXNUM"
12 14 3 $type eq "TYPE" or $type eq "QUOTELIKE" or $type eq "STRING" or $type eq "HEXNUM" or $type eq "CLASS"