Branch Coverage

blib/lib/Collision/2D/Entity/Point.pm
Criterion Covered Total %
branch 39 46 84.7


line true false branch
52 0 78 if ($x1 > 0 and $x1 < $w and $y1 > 0 and $y1 < $h) { }
58 0 78 unless $params{'interval'} and $self->relative_x || $self->relative_y
60 25 53 unless ($self->relative_xv)
61 0 25 unless $x1 > 0 and $x1 < $w
63 22 3 if ($y1 < 0 and $y2 > 0) { }
3 0 elsif ($y1 > $h and $y2 < $h) { }
80 1 52 if ($x1 > $w and $x2 > $w)
83 5 47 if ($x1 < 0 and $x2 < 0)
86 1 46 if ($y1 > $h and $y2 > $h)
89 1 45 if ($y1 < 0 and $y2 < 0)
95 45 0 if ($self->relative_xv)
96 29 16 if ($x1 < 0 and $x2 > 0) { }
6 20 elsif ($x1 > $w and $x2 < $w) { }
99 12 17 if ($y_at_t < $h and $y_at_t > 0)
107 4 2 if ($y_at_t < $h and $y_at_t > 0)
113 39 6 if ($self->relative_yv)
114 10 29 if ($y1 < 0 and $y2 > 0) { }
17 24 elsif ($y1 > $h and $y2 < $h) { }
116 10 0 if (not defined $best_time or $t < $best_time)
118 4 6 if ($x_at_t < $w and $x_at_t > 0)
126 17 0 if (not defined $best_time or $t < $best_time)
128 8 9 if ($x_at_t < $w and $x_at_t > 0)
135 17 28 unless $best_axis