Subroutine Coverage

blib/lib/Chess/Rep.pm
Criterion Covered Total %
subroutine 27 37 72.9
pod 21 21 100.0


line count pod subroutine
3 2 n/a BEGIN
5 2 n/a BEGIN
64 2 n/a BEGIN
66 2 n/a BEGIN
235 1 Yes new
249 0 Yes reset
259 7 Yes set_from_fen
305 0 Yes get_fen
405 0 Yes status
409 7 n/a _reset
444 0 Yes set_piece_at
465 86 Yes set_piece_at_index
495 6 Yes get_piece_at
521 1912 Yes get_piece_at_index
532 0 Yes to_move
577 6 Yes go_move
816 6 n/a _move_piece
852 13 Yes compute_valid_moves
947 350 Yes is_attacked
955 13513 n/a __ANON__
1030 56 n/a _get_allowed_moves
1037 547 n/a _add_if_valid
1078 20 n/a _get_allowed_P_moves
1093 3 n/a _get_allowed_N_moves
1102 18 n/a _get_allowed_R_moves
1114 14 n/a _get_allowed_B_moves
1126 12 n/a _get_allowed_Q_moves
1134 13 n/a _get_allowed_K_moves
1168 11 Yes can_castle
1186 0 Yes has_castled
1213 0 Yes piece_color
1234 12 Yes get_index
1250 906 Yes get_index_from_row_col
1264 0 Yes get_field_id
1281 24 Yes get_row_col
1304 0 Yes dump_pos
1316 0 n/a _debug