Branch Coverage

lib/AI/Prolog/Parser/PreProcessor/Math.pm
Criterion Covered Total %
branch 24 28 85.7


line true false branch
115 56 258 if $op_ok and $rhs =~ /\G ($op) /cgx
118 88 170 if $rhs =~ /\G ($simple_math_term) /cgx
120 20 150 if $rhs =~ /\G $lparen /cgx
122 20 130 if $rhs =~ /\G $rparen /cgx
124 98 32 if $rhs =~ /\G \s+ /cgx
136 0 222 unless $token
137 19 203 if ('(' eq _as_string($token))
140 15 207 if (')' eq _as_string($token))
141 0 15 unless (defined $first)
159 31 0 unless defined $first
169 53 281 if (ref $token and "@$token" =~ /OP ($op_re)/)
191 53 4 if defined $$tokens[$i]
198 53 0 if defined $$tokens[$i]
202 494 87 ref $_[0] ? :