Branch Coverage

blib/lib/CQL/Parser.pm
Criterion Covered Total %
branch 40 52 76.9


line true false branch
86 0 7 $debug ? :
110 0 55 if ($token->getType != 130)
148 2 0 if (my $error = $@)
151 2 28 if $error =~ /$$_{'regex'}/
166 12 22 if ($type == 106) { }
9 13 elsif ($type == 107) { }
2 11 elsif ($type == 108) { }
11 0 elsif ($type == 109) { }
203 5 119 if ($token->getType == 128) { }
1 118 elsif ($token->getType == 101) { }
218 91 24 unless isBaseRelation()
227 0 12 unless (isRelationModifier())
236 2 89 if not defined $word or $word eq ''
252 1 0 if ($token->getType == 102)
284 8 7 if ($token->getType == 140) { }
4 3 elsif ($token->getType == 141) { }
1 2 elsif ($token->getType == 120 or $token->getType == 121) { }
290 0 4 if ($token->getType != 102)
307 0 8 unless (isProxRelation())
317 2 6 unless ($token->getString =~ /^\d+$/)
328 0 1 if ($type != 116 and $type != 117 and $type != 118 and $type != 119)
340 0 1 if ($type != 120 and $type != 121)
350 3 115 if ($token->getType == 127 and not $token->getString =~ /\./)
369 1 11 if ($type == 127)
382 0 264 if ($token->getType != $expected->getType)
398 1530 0 unless $CQL::DEBUG