Branch Coverage

blib/lib/AI/Logic/AnswerSet.pm
Criterion Covered Total %
branch 1 104 0.9


line true false branch
29 0 0 unless open SAVESTDOUT, '>&STDOUT'
30 0 0 unless open STDOUT, ">$_[0]"
34 0 0 unless system(@args) == 0
44 0 0 unless open SAVESTDOUT, '>&STDOUT'
45 0 0 unless open STDOUT, ">$_[0]"
48 0 0 unless system(@args) == 0
63 0 0 if (@input) { }
67 0 0 if ($option =~ /^-/) { }
103 0 0 if (@input) { }
136 0 0 if (@isAFile) { }
141 0 0 if ($row =~ /^(\w+)(\(((\w|\d|\.)+,?)*\))?\./)
152 0 0 if ($elem =~ /^(\w+)(\(((\w|\d|\.)+,?)*\))?\.?$/)
167 0 1 if (@isAFile) { }
182 0 0 unless open RESULT, '<', "$_[0]"
187 0 0 if ($line =~ /\{\w*/)
208 0 0 if ($line =~ /\{\w*/)
239 0 0 if ($elem =~ /(\w+).*\n/) { }
0 0 elsif ($elem =~ /(\w+).*/) { }
241 0 0 if (_existsPred($1, \@pred))
249 0 0 if (_existsPred($1, \@pred))
256 0 0 if (@num and @operators) { }
0 0 elsif (@num and not @operators) { }
266 0 0 if ($comparison)
275 0 0 if (_evaluate($t, $num[$i], $operators[$i])) { }
284 0 0 if ($countPred == $size)
302 0 0 if ($operator eq '==') { }
0 0 elsif ($operator eq '!=') { }
0 0 elsif ($operator eq '>') { }
0 0 elsif ($operator eq '>=') { }
0 0 elsif ($operator eq '<') { }
0 0 elsif ($operator eq '<=') { }
303 0 0 if ($value == $num)
309 0 0 if ($value != $num)
315 0 0 if ($value > $num)
321 0 0 if ($value >= $num)
327 0 0 if ($value < $num)
333 0 0 if ($value <= $num)
348 0 0 if ($_[1])
353 0 0 if ($_[2])
363 0 0 if (@second)
364 0 0 if ($second[0] =~ /\d+/) { }
367 0 0 if (@third)
375 0 0 if (@third)
385 0 0 if ($elem =~ /(\w+).*\n/) { }
0 0 elsif ($elem =~ /(\w+).*/) { }
386 0 0 if (@predList) { }
387 0 0 if (_existsPred($1, \@predList))
399 0 0 if (@predList) { }
400 0 0 if (_existsPred($1, \@predList))
411 0 0 if (@selectedAS)
437 0 0 if ($pred eq $predList[$i])
463 0 0 if ($pred =~ /(\w+)\((.+)\)/)