Branch Coverage

blib/lib/Karel/Robot/WithGrid.pm
Criterion Covered Total %
branch 24 28 85.7


line true false branch
214 24 164 unless @{$self->_stack;}
264 0 11 if $self->facing =~ /w/i
281 108 31 if ($count) { }
324 18 23 if ($condition =~ /^[NESW]$/) { }
12 11 elsif ($condition eq 'w') { }
11 0 elsif ($condition eq 'm') { }
337 28 13 if $negation
351 17 5 if ($self->condition($condition)) { }
2 3 elsif ($else) { }
370 12 7 if ($self->condition($condition)) { }
389 30 0 if ($commands) { }
414 1 389 unless $self->is_running
430 0 389 unless $action
437 188 29 if (++$index > $#$commands) { }