Subroutine Coverage
blib/lib/Chess/Game.pm |
|
Criterion |
Covered |
Total |
% |
subroutine |
39 |
41 |
95.1
|
pod |
10 |
16 |
62.5
|
line |
count |
pod |
subroutine |
164
|
3 |
n/a |
BEGIN |
165
|
3 |
n/a |
BEGIN |
166
|
3 |
n/a |
BEGIN |
167
|
3 |
n/a |
BEGIN |
168
|
3 |
n/a |
BEGIN |
169
|
3 |
n/a |
BEGIN |
170
|
3 |
n/a |
BEGIN |
171
|
3 |
n/a |
BEGIN |
172
|
3 |
n/a |
BEGIN |
173
|
3 |
n/a |
BEGIN |
174
|
3 |
n/a |
BEGIN |
175
|
3 |
n/a |
BEGIN |
186
|
3 |
n/a |
BEGIN |
189
|
3 |
n/a |
BEGIN |
190
|
3 |
n/a |
BEGIN |
191
|
3 |
n/a |
BEGIN |
192
|
3 |
n/a |
BEGIN |
193
|
3 |
n/a |
BEGIN |
196
|
48 |
n/a |
_add_pieces |
209
|
1056 |
n/a |
_get_game |
214
|
4 |
Yes |
new |
252
|
225 |
Yes |
clone |
350
|
3 |
No |
get_board |
358
|
0 |
No |
get_pieces |
373
|
0 |
No |
get_players |
381
|
2 |
No |
get_movelist |
389
|
8 |
Yes |
get_message |
399
|
2 |
No |
get_capture |
408
|
132 |
n/a |
_mark_threatened_kings |
460
|
45 |
n/a |
_is_valid_en_passant |
481
|
7 |
n/a |
_is_valid_short_castle |
516
|
6 |
n/a |
_is_valid_long_castle |
551
|
371 |
Yes |
is_move_legal |
685
|
203 |
Yes |
make_move |
801
|
4 |
No |
take_back_move |
878
|
9 |
n/a |
_player_has_moves |
901
|
2 |
Yes |
do_promotion |
919
|
10 |
Yes |
player_in_check |
930
|
5 |
Yes |
player_checkmated |
941
|
3 |
Yes |
player_stalemated |
952
|
3 |
Yes |
result |