Branch Coverage

blib/lib/Karel/Robot/WithGrid.pm
Criterion Covered Total %
branch 30 34 88.2


line true false branch
214 25 315 unless @{$self->_stack;}
219 221 91 unless $current
262 2 371 ref $current ? :
291 0 11 if $self->facing =~ /w/i
308 178 62 if ($count) { }
351 18 33 if ($condition =~ /^[NESW]$/) { }
22 11 elsif ($condition eq 'w') { }
11 0 elsif ($condition eq 'm') { }
364 28 23 if $negation
378 27 5 if ($self->condition($condition)) { }
4 1 elsif ($else) { }
397 12 7 if ($self->condition($condition)) { }
416 91 0 if ($commands) { }
441 1 844 unless $self->is_running
446 836 8 defined $index ? :
458 0 844 unless $action
465 340 189 if (++$index > $#$commands) { }