Condition Coverage

blib/lib/Collision/2D/Entity/Grid.pm
Criterion Covered Total %
condition 13 36 36.1


or 2 conditions

line l !l condition
34 0 31 $params{'xv'} || 0
0 31 $params{'yv'} || 0
0 31 $params{'relative_x'} || 0
0 31 $params{'relative_y'} || 0
0 31 $params{'relative_xv'} || 0
0 31 $params{'relative_yv'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
34 0 31 0 $params{'cells_x'} || ceil($params{'w'} / $params{'cell_size'})
0 31 0 $params{'cells_y'} || ceil($params{'h'} / $params{'cell_size'})
177 0 0 63 $cell_x < 0 or $cell_y < 0
0 0 63 $cell_x < 0 or $cell_y < 0 or $cell_x >= $self->cells_x
0 0 63 $cell_x < 0 or $cell_y < 0 or $cell_x >= $self->cells_x or $cell_y >= $self->cells_y
214 0 0 0 not $best_collision or $collision->time < $best_collision->time
253 12 0 0 not $best_collision or $collision->time < $best_collision->time
293 6 0 0 not $best_collision or $collision->time < $best_collision->time