| blib/lib/Games/Board/Space.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 11 | 18 | 61.1 |
| line | true | false | branch |
|---|---|---|---|
| 38 | 0 | 196 | unless $args{'id'} |
| 40 | 0 | 196 | unless eval { do { $args{'board'}->isa("Games::Board") } } |
| 48 | 68 | 128 | if $args{'dir'} and ref $args{'dir'} eq "HASH" |
| 88 | 28 | 0 | if ref $space->{'dir'} eq "HASH" |
| 114 | 2 | 5 | if grep {$_ eq $piece->id;} @{$$self{"contents"};} |
| 128 | 0 | 4 | unless eval { do { $piece->isa("Games::Board::Piece") } } |
| 129 | 0 | 4 | if $self->contains($piece) |
| 146 | 0 | 2 | unless eval { do { $piece->isa("Games::Board::Piece") } } |
| 147 | 0 | 2 | unless $self->contains($piece) |