Branch Coverage

blib/lib/Collision/2D/Entity/Rect.pm
Criterion Covered Total %
branch 24 28 85.7


line true false branch
51 8 8 if $y1 + $sh > 0 and $x1 + $sw > 0 and $x1 < $ow and $y1 < $oh
58 0 32 if $x1 + $sw < 0 and $x2 + $sw < 0 or $x1 > $ow and $x2 > $ow or $y1 + $sh < 0 and $y2 + $sh < 0 or $y1 > $oh and $y2 > $oh
66 15 17 if ($x1 + $sw < 0)
69 6 9 if ($yatt + $sh > 0 and $yatt < $oh)
74 15 17 if ($y1 + $sh < 0)
76 15 0 if ($time < $best_time)
78 6 9 if ($xatt + $sw > 0 and $xatt < $ow)
84 15 17 if ($x1 > $ow)
86 15 0 if ($time < $best_time)
88 7 8 if ($yatt + $sh > 0 and $yatt < $oh)
94 15 17 if ($y1 > $oh)
96 15 0 if ($time < $best_time)
98 7 8 if ($xatt + $sw > 0 and $xatt < $ow)
105 26 6 if ($best_time <= $params{'interval'})