Branch Coverage

blib/lib/Games/Board/Piece.pm
Criterion Covered Total %
branch 11 18 61.1


line true false branch
37 0 3 unless $args{'id'}
38 0 3 unless eval { do { $args{'board'}->isa("Games::Board") } }
88 2 2 unless $piece->{'current_space'}
111 2 2 if ($how eq 'dir') { }
2 0 elsif ($how eq 'to') { }
112 0 2 unless $old_space
113 0 2 unless $new_space = $old_space->dir($which)
115 0 2 unless eval { do { $which->isa("Games::Board::Space") } }
121 0 4 unless not $old_space or $old_space->take($piece)