Condition Coverage

blib/lib/Chess/Board.pm
Criterion Covered Total %
condition 37 54 68.5


and 3 conditions

line !l l&&!r l&&r condition
257 17297 0 14703 defined $piece and $piece->can('clone')
270 0 0 269 defined $caller and $$caller >= 0
300 0 0 3 defined $x and defined $y
311 0 0 22965 defined $x and defined $y
313 480 500 21985 $x >= 0 and $x <= 7
321 0 0 23068 defined $x and defined $y
323 476 500 22092 $y >= 0 and $y <= 7
375 1022 1949 1014 $vdist and $hdelta == 0
0 1949 1022 $hdist and $vdelta == 0
434 0 281 0 'Chess::Board'->square_is_valid($sq1) and 'Chess::Board'->square_is_valid($sq2)
451 161 120 0 $hdist == 0 and $hdist == $vdist

or 3 conditions

line l !l&&r !l&&!r condition
249 500 0 0 ref $clonee || croak('Invalid Chess::Board reference')
368 2330 1022 1949 $hdist == 0 or $vdist == 0
3352 1949 0 $hdist == 0 or $vdist == 0 or $hdist == $vdist
369 2971 1014 1316 $hdist or $vdist
444 120 39 122 $hdist == 0 or $vdist == 0
159 122 0 $hdist == 0 or $vdist == 0 or $hdist == $vdist
455 413 244 146 $xcurr != $x2 or $ycurr != $y2