| line |
true |
false |
branch |
|
34
|
37 |
155 |
if ($p) |
|
48
|
3 |
34 |
if ($p & 4) { } |
|
|
9 |
25 |
elsif ($p & 1 and $self->to_move != $c) { } |
|
57
|
6 |
18 |
if $x & 136 |
|
63
|
9 |
0 |
$c == 0 ? : |
|
68
|
2 |
16 |
if $$m[0] < 0 or $$m[0] > 7 or $$m[1] < 0 or $$m[1] > 7 |
|
114
|
53 |
35 |
unless ($p) |
|
120
|
20 |
33 |
$$cover{$piece}{'color'} ? : |
|
137
|
25 |
0 |
if ($fen =~ /^(.+?)\s(.*)$/) |
|
141
|
16 |
9 |
$color ? : |
|
152
|
3 |
102 |
if ($i =~ /^\d$/) { } |
|
157
|
25 |
77 |
if ($position == $col) { } |
|
191
|
53 |
46 |
unless $p |
|
193
|
43 |
3 |
if (Chess::Rep::piece_color($p) == $color) { } |
|
195
|
40 |
3 |
unless $p == 4 or $p == 132 |
|
206
|
3 |
220 |
if @_ |
|
216
|
0 |
2 |
unless $self->_cover |
|
232
|
19 |
109 |
if ($self->_cover->{$col . $row}) { } |
|
233
|
5 |
14 |
if (exists $self->_cover->{$col . $row}{'is_protected_by'} and exists $self->_cover->{$col . $row}{'is_threatened_by'}) { } |
|
|
14 |
0 |
elsif (exists $self->_cover->{$col . $row}{'white_can_move_here'} and exists $self->_cover->{$col . $row}{'black_can_move_here'}) { } |
|
260
|
16 |
112 |
if $col eq 'H' |
|
295
|
0 |
0 |
unless $moves and $moves >= 0 |
|
315
|
0 |
0 |
unless $influenced |
|
327
|
0 |
0 |
if ($n + 1 == $move) { } |
|
329
|
0 |
0 |
$state ? : |
|
335
|
0 |
0 |
if ($size != 0) |
|
336
|
0 |
0 |
$state ? : |
|
363
|
0 |
0 |
defined $value ? : |
|
365
|
0 |
0 |
if $value < 0 |
|
368
|
0 |
0 |
if $value > 0 |
|
371
|
0 |
0 |
if $value != 0 |
|
382
|
0 |
0 |
if $sum ne '1' |