blib/lib/Chess/Rep/Coverage.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 23 | 32 | 71.8 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
47 | 15 | 10 | 9 | $p & 1 and $self->to_move != $c |
232 | 14 | 0 | 5 | exists $self->_cover->{$col . $row}{'is_protected_by'} and exists $self->_cover->{$col . $row}{'is_threatened_by'} |
0 | 14 | 0 | exists $self->_cover->{$col . $row}{'white_can_move_here'} and exists $self->_cover->{$col . $row}{'black_can_move_here'} | |
294 | 0 | 0 | 0 | $moves and $moves >= 0 |
line | l | !l | condition |
---|---|---|---|
95 | 1 | 36 | $cover->{$piece}{'is_threatened_by'} ||= [] |
96 | 14 | 23 | $cover->{$piece}{'is_protected_by'} ||= [] |
116 | 15 | 38 | $cover->{$f}{'white_can_move_here'} ||= [] |
117 | 15 | 38 | $cover->{$f}{'black_can_move_here'} ||= [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
67 | 0 | 0 | 18 | $m->[0] < 0 or $m->[0] > 7 |
0 | 1 | 17 | $m->[0] < 0 or $m->[0] > 7 or $m->[1] < 0 | |
1 | 1 | 16 | $m->[0] < 0 or $m->[0] > 7 or $m->[1] < 0 or $m->[1] > 7 | |
194 | 2 | 1 | 40 | $p == 4 or $p == 132 |