Condition Coverage

blib/lib/Math/Polygon/Tree.pm
Criterion Covered Total %
condition 129 158 81.6


and 3 conditions

line !l l&&!r l&&r condition
75 2665 6306 2 $points[0][0] == $points[-1][0] and $points[0][1] == $points[-1][1]
98 711 101 82 $$c[$h][1] == $$c[$i][1] and $$c[$k][1] == $$c[$j][1]
812 82 0 $$c[$h][1] == $$c[$i][1] and $$c[$k][1] == $$c[$j][1] and $$c[$i][1] == $y0 || $$c[$i][1] == $y1
2 80 0 $$c[$h][1] == $$c[$i][1] and $$c[$k][1] == $$c[$j][1] and $$c[$i][1] == $y0 || $$c[$i][1] == $y1 and $$c[$j][1] == $y0 || $$c[$j][1] == $y1
105 33 0 46 $$c[$i][0] == $x0 and $$c[$j][0] == $x0
110 46 0 33 $$c[$i][0] == $x1 and $$c[$j][0] == $x1
116 668 99 127 $$c[$h][0] == $$c[$i][0] and $$c[$k][0] == $$c[$j][0]
767 127 0 $$c[$h][0] == $$c[$i][0] and $$c[$k][0] == $$c[$j][0] and $$c[$i][0] == $x0 || $$c[$i][0] == $x1
2 125 0 $$c[$h][0] == $$c[$i][0] and $$c[$k][0] == $$c[$j][0] and $$c[$i][0] == $x0 || $$c[$i][0] == $x1 and $$c[$j][0] == $x0 || $$c[$j][0] == $x1
123 62 3 59 $$c[$i][1] == $y0 and $$c[$j][1] == $y0
128 70 8 46 $$c[$i][1] == $y1 and $$c[$j][1] == $y1
178 491 3946 4073 @slice_parts == 1 and @{$slice_parts[0];} == 4
4437 3972 101 @slice_parts == 1 and @{$slice_parts[0];} == 4 and all sub { $$_[1] == $y0 or $$_[1] == $y1 if $$_[0] == $x0 or $$_[0] == $x1; } , @{$slice_parts[0];}
222 6 4 0 $line =~ /^END/ and $pid < 0
228 6 2 2 $line =~ /^END/ and @cur_points
275 0 0 6 @points == 1 && ref $points[0][0]
280 6 4 1 defined $result and $point_result != $result
303 0 0 9 $x0 >= $xmin and $x1 <= $xmax
0 0 9 $x0 >= $xmin and $x1 <= $xmax and $y0 >= $ymin
0 1 8 $x0 >= $xmin and $x1 <= $xmax and $y0 >= $ymin and $y1 <= $ymax
308 0 1 7 $x0 >= $fx0 and $y0 >= $fy0
1 2 5 $x0 >= $fx0 and $y0 >= $fy0 and $x1 <= $fx1
3 2 3 $x0 >= $fx0 and $y0 >= $fy0 and $x1 <= $fx1 and $y1 <= $fy1
428 114 4 2 abs $y - $py < $POLYGON_BORDER_WIDTH and abs $x - $px < $POLYGON_BORDER_WIDTH
430 114 1 3 abs $y - $py < $POLYGON_BORDER_WIDTH and abs $py - $ny < $POLYGON_BORDER_WIDTH
115 3 0 abs $y - $py < $POLYGON_BORDER_WIDTH and abs $py - $ny < $POLYGON_BORDER_WIDTH and $x >= $px || $x >= $nx
0 3 0 abs $y - $py < $POLYGON_BORDER_WIDTH and abs $py - $ny < $POLYGON_BORDER_WIDTH and $x >= $px || $x >= $nx and $x <= $px || $x <= $nx
436 36 16 21 $y < $py and $y < $ny
437 17 21 14 $y > $py and $y > $ny
438 21 3 14 $x > $px and $x > $nx
443 13 2 0 $y <= $py and $y <= $ny

or 2 conditions

line l !l condition
258 22 2 $result // 0

or 3 conditions

line l !l&&r !l&&!r condition
98 46 34 2 $$c[$i][1] == $y0 || $$c[$i][1] == $y1
34 45 1 $$c[$j][1] == $y0 || $$c[$j][1] == $y1
116 61 64 2 $$c[$i][0] == $x0 || $$c[$i][0] == $x1
64 60 1 $$c[$j][0] == $x0 || $$c[$j][0] == $x1
180 1005 202 738 $$_[1] == $y0 or $$_[1] == $y1
490 1455 3234 $$_[0] == $x0 or $$_[0] == $x1
200 0 0 2 !ref($file) || ref $file eq 'SCALAR'
249 1 7 44 $px < $xmin - $POLYGON_BORDER_WIDTH or $px > $xmax + $POLYGON_BORDER_WIDTH
8 0 44 $px < $xmin - $POLYGON_BORDER_WIDTH or $px > $xmax + $POLYGON_BORDER_WIDTH or $py < $ymin - $POLYGON_BORDER_WIDTH
7 0 44 $px < $xmin - $POLYGON_BORDER_WIDTH or $px > $xmax + $POLYGON_BORDER_WIDTH or $py < $ymin - $POLYGON_BORDER_WIDTH or $py > $ymax + $POLYGON_BORDER_WIDTH
300 0 1 9 $x1 < $xmin or $x0 > $xmax
1 0 9 $x1 < $xmin or $x0 > $xmax or $y1 < $ymin
1 0 9 $x1 < $xmin or $x0 > $xmax or $y1 < $ymin or $y0 > $ymax
364 130494 8420 0 $bbox2 //= $bbox1
366 129928 8976 10 $$bbox1[2] // $$bbox1[0]
8975 129927 12 $$bbox2[2] // $$bbox2[0]
129928 8978 8 $$bbox1[3] // $$bbox1[1]
8975 129926 13 $$bbox2[3] // $$bbox2[1]
430 2 1 0 $x >= $px || $x >= $nx
1 2 0 $x <= $px || $x <= $nx
445 6 8 1 abs $px - $nx < $POLYGON_BORDER_WIDTH or $x < $xx