Condition Coverage

blib/lib/Image/Base/X11/Protocol/Drawable.pm
Criterion Covered Total %
condition 9 96 9.3


and 3 conditions

line !l l&&!r l&&r condition
142 0 0 0 not exists $self->{$key} and defined(my $rsubr = $get_geometry{$key})
281 0 0 0 $x >= 0 and $y >= 0
0 0 0 $x >= 0 and $y >= 0 and $x <= 32767
0 0 0 $x >= 0 and $y >= 0 and $x <= 32767 and $y <= 32767
305 0 0 0 $x2 >= 0 and $y2 >= 0
0 0 0 $x2 >= 0 and $y2 >= 0 and $x1 <= 32767
0 0 0 $x2 >= 0 and $y2 >= 0 and $x1 <= 32767 and $y1 <= 32767
354 0 0 0 $x2 >= 0 and $y2 >= 0
0 0 0 $x2 >= 0 and $y2 >= 0 and $x1 <= 32767
0 0 0 $x2 >= 0 and $y2 >= 0 and $x1 <= 32767 and $y1 <= 32767
366 0 0 0 not $fill and $x1 == $x2 || $y1 == $y2
447 0 0 0 $x2 >= 0 and $y2 >= 0
0 0 0 $x2 >= 0 and $y2 >= 0 and $x1 <= 32767
0 0 0 $x2 >= 0 and $y2 >= 0 and $x1 <= 32767 and $y1 <= 32767
472 0 0 0 $x1 == $x2 and $y1 == $y2
879 2 16 0 $x2 > -1 && ($y2 > -1 || $y1 > -1 && $x1 * ($y2 - $y1) < ($y1 + 1) * ($x2 - $x1))
945 0 0 0 $i < $#$aref and $#$aref >= 3

or 3 conditions

line l !l&&r !l&&!r condition
203 0 0 0 $x < 0 or $y < 0
0 0 0 $x < 0 or $y < 0 or $x > 32767
0 0 0 $x < 0 or $y < 0 or $x > 32767 or $y > 32767
321 0 0 0 $x1 == $x2 or $y1 == $y2
366 0 0 0 $x1 == $x2 || $y1 == $y2
441 0 0 0 $w <= 1 or $h <= 1
452 0 0 0 $x1 < -32768 or $x2 > 32767
0 0 0 $x1 < -32768 or $x2 > 32767 or $y1 < -32768
0 0 0 $x1 < -32768 or $x2 > 32767 or $y1 < -32768 or $y2 > 32767
558 0 0 0 $self->{'-pixel_to_colour'} ||= do { +{reverse(%{$self->{'-colour_to_pixel'};})} }
571 0 0 0 $self->{'-gc'} || $self->{'-gc_created'}
632 0 0 0 $self->get('-colormap') || croak('No -colormap to add colours to')
785 3 4 4 $x2 < -32768 or $x2 > 32767
798 2 2 5 $y2new < -32768 or $y2new > 32767
804 0 0 2 $x2new < -32768 or $x2new > 32767