Branch Coverage

blib/lib/HiPi/Graphics/DrawingContext.pm
Criterion Covered Total %
branch 0 156 0.0


line true false branch
49 0 0 if ($minx) { }
50 0 0 if $x < $minx
51 0 0 if $y < $miny
52 0 0 if $x > $maxx
53 0 0 if $y > $maxy
65 0 0 $invert ? :
88 0 0 $rotation ? :
90 0 0 unless $radians
93 0 0 unless scalar @oldbuffer
98 0 0 if ($rotation == 90 or $rotation == -270) { }
0 0 elsif (abs $rotation == 180) { }
0 0 elsif ($rotation == -90 or $rotation == 270) { }
122 0 0 if ($rotation == 11)
155 0 0 if ($self->pen_inverted)
156 0 0 $on ? :
169 0 0 if ($text eq '')
170 0 0 wantarray ? :
173 0 0 unless (ref $font)
181 0 0 if ($font->class eq 'hipi_2')
186 0 0 wantarray ? :
204 0 0 if (exists $symbols->{$this_char}) { }
206 0 0 if ($prev_char)
221 0 0 if ($symbol->{'bitmap'}[$p] & $mask)
225 0 0 if ($mask == 0)
234 0 0 if ($prev_char)
242 0 0 if ($prev_char)
253 0 0 wantarray ? :
262 0 0 unless (ref $font)
266 0 0 if ($text eq '')
267 0 0 wantarray ? :
273 0 0 if ($font->class eq 'hipi_2')
277 0 0 wantarray ? :
294 0 0 if (exists $symbols->{$this_char}) { }
296 0 0 if ($prev_char)
305 0 0 if ($prev_char)
313 0 0 if ($prev_char)
317 0 0 wantarray ? :
340 0 0 if ($fill)
350 0 0 if ($e2 <= $y_pos)
352 0 0 if (-$x_pos == $y_pos and $e2 <= $x_pos)
356 0 0 if ($e2 > $x_pos)
359 0 0 if $x_pos > 0
383 0 0 if ($start > $end)
389 0 0 if ($rx == $ry) { }
0 0 elsif ($rx > $ry) { }
412 0 0 if ($fill)
428 0 0 if ($join)
448 0 0 if ($x1 > $x2)
454 0 0 if ($y1 > $y2)
481 0 0 if ($fill)
513 0 0 if ($x1 > $x2)
519 0 0 if ($y1 > $y2)
529 0 0 if $r > $maxrx
530 0 0 if $r > $maxry
533 0 0 if ($fill) { }
590 0 0 unless scalar @vertices > 2
593 0 0 if ($vertices[0][0] != $vertices[-1][0] or $vertices[0][1] != $vertices[-1][1])
601 0 0 if ($lastpoint)
608 0 0 if ($fill)
611 0 0 if $point->[0] > $maxX
612 0 0 if $point->[1] > $maxY
613 0 0 if $point->[0] < $minX
614 0 0 if $point->[1] < $minY
619 0 0 if (_point_in_polygon([$x, $y], @vertices))
640 0 0 if @_ < 3
650 0 0 if $y == $py and $py == $ny and $x >= $px || $x >= $nx and $x <= $px || $x <= $nx
654 0 0 if $x == $px and $px == $nx and $y >= $py || $y >= $ny and $y <= $py || $y <= $ny
658 0 0 if ($py == $ny or $y <= $py and $y <= $ny or $y > $py and $y > $ny or $x > $px and $x > $nx)
668 0 0 if $px == $nx or $x <= $xinters
695 0 0 $x1 - $x0 >= 0 ? :
696 0 0 $x0 < $x1 ? :
697 0 0 $y1 - $y0 <= 0 ? :
698 0 0 $y0 < $y1 ? :
703 0 0 if (2 * $err >= $dy)
707 0 0 if (2 * $err <= $dx)
712 0 0 unless ($ep)
731 0 0 if ($bitarray->[$y][$x]) { }
0 0 elsif ($fill) { }