Condition Coverage

blib/lib/Graphics/Fig/Polyline.pm
Criterion Covered Total %
condition 43 89 48.3


and 3 conditions

line !l l&&!r l&&r condition
61 0 0 8 defined $value and $value =~ /^$pattern$/
81 4 0 4 not defined $dpi and defined $y
92 0 1 3 defined $dpi and not defined $y
103 0 0 1 defined $dpi and defined $y
141 2 0 3 $fromImage and ref $value eq 'ARRAY'
452 9 0 20 defined $self && defined $finalPoint
518 17 0 0 defined $cornerRadius and $cornerRadius != 0
529 0 0 8 defined(my $width = $parameters{'width'}) and defined(my $height = $parameters{'height'})
795 4 1 1 defined $width and defined $height
866 0 17 0 sin($rotation) * cos($rotation) != 0 and $subtype == 2 || $subtype == 4

or 2 conditions

line l !l condition
363 0 11 not defined($temp = $parameters{'points'}) or scalar(@{$temp;} < 2)

or 3 conditions

line l !l&&r !l&&!r condition
146 2 0 0 &_parseResolution($value, $state) or $fromImage
328 0 71 0 ref $proto || $proto
452 9 4 16 not defined $self && defined $finalPoint or $parameters{'detachedLineto'}
4 4 12 not defined $self && defined $finalPoint or $parameters{'detachedLineto'} or do { $position }->[0] != do { $finalPoint }->[0]
8 0 12 not defined $self && defined $finalPoint or $parameters{'detachedLineto'} or do { $position }->[0] != do { $finalPoint }->[0] or do { $position }->[1] != do { $finalPoint }->[1]
4 0 12 not defined $self && defined $finalPoint or $parameters{'detachedLineto'} or do { $position }->[0] != do { $finalPoint }->[0] or do { $position }->[1] != do { $finalPoint }->[1] or do { $self }->{'lineStyle'} != $parameters{'lineStyle'}
0 0 12 not defined $self && defined $finalPoint or $parameters{'detachedLineto'} or do { $position }->[0] != do { $finalPoint }->[0] or do { $position }->[1] != do { $finalPoint }->[1] or do { $self }->{'lineStyle'} != $parameters{'lineStyle'} or do { $self }->{'lineThickness'} != $parameters{'lineThickness'}
0 0 12 not defined $self && defined $finalPoint or $parameters{'detachedLineto'} or do { $position }->[0] != do { $finalPoint }->[0] or do { $position }->[1] != do { $finalPoint }->[1] or do { $self }->{'lineStyle'} != $parameters{'lineStyle'} or do { $self }->{'lineThickness'} != $parameters{'lineThickness'} or do { $self }->{'penColor'} != $parameters{'penColor'}
0 0 12 not defined $self && defined $finalPoint or $parameters{'detachedLineto'} or do { $position }->[0] != do { $finalPoint }->[0] or do { $position }->[1] != do { $finalPoint }->[1] or do { $self }->{'lineStyle'} != $parameters{'lineStyle'} or do { $self }->{'lineThickness'} != $parameters{'lineThickness'} or do { $self }->{'penColor'} != $parameters{'penColor'} or do { $self }->{'fillColor'} != $parameters{'fillColor'}
0 0 12 not defined $self && defined $finalPoint or $parameters{'detachedLineto'} or do { $position }->[0] != do { $finalPoint }->[0] or do { $position }->[1] != do { $finalPoint }->[1] or do { $self }->{'lineStyle'} != $parameters{'lineStyle'} or do { $self }->{'lineThickness'} != $parameters{'lineThickness'} or do { $self }->{'penColor'} != $parameters{'penColor'} or do { $self }->{'fillColor'} != $parameters{'fillColor'} or do { $self }->{'depth'} != $parameters{'depth'}
0 0 12 not defined $self && defined $finalPoint or $parameters{'detachedLineto'} or do { $position }->[0] != do { $finalPoint }->[0] or do { $position }->[1] != do { $finalPoint }->[1] or do { $self }->{'lineStyle'} != $parameters{'lineStyle'} or do { $self }->{'lineThickness'} != $parameters{'lineThickness'} or do { $self }->{'penColor'} != $parameters{'penColor'} or do { $self }->{'fillColor'} != $parameters{'fillColor'} or do { $self }->{'depth'} != $parameters{'depth'} or do { $self }->{'areaFill'} != $parameters{'areaFill'}
0 0 12 not defined $self && defined $finalPoint or $parameters{'detachedLineto'} or do { $position }->[0] != do { $finalPoint }->[0] or do { $position }->[1] != do { $finalPoint }->[1] or do { $self }->{'lineStyle'} != $parameters{'lineStyle'} or do { $self }->{'lineThickness'} != $parameters{'lineThickness'} or do { $self }->{'penColor'} != $parameters{'penColor'} or do { $self }->{'fillColor'} != $parameters{'fillColor'} or do { $self }->{'depth'} != $parameters{'depth'} or do { $self }->{'areaFill'} != $parameters{'areaFill'} or do { $self }->{'styleVal'} != $parameters{'styleVal'}
0 0 12 not defined $self && defined $finalPoint or $parameters{'detachedLineto'} or do { $position }->[0] != do { $finalPoint }->[0] or do { $position }->[1] != do { $finalPoint }->[1] or do { $self }->{'lineStyle'} != $parameters{'lineStyle'} or do { $self }->{'lineThickness'} != $parameters{'lineThickness'} or do { $self }->{'penColor'} != $parameters{'penColor'} or do { $self }->{'fillColor'} != $parameters{'fillColor'} or do { $self }->{'depth'} != $parameters{'depth'} or do { $self }->{'areaFill'} != $parameters{'areaFill'} or do { $self }->{'styleVal'} != $parameters{'styleVal'} or do { $self }->{'joinStyle'} != $parameters{'joinStyle'}
0 0 12 not defined $self && defined $finalPoint or $parameters{'detachedLineto'} or do { $position }->[0] != do { $finalPoint }->[0] or do { $position }->[1] != do { $finalPoint }->[1] or do { $self }->{'lineStyle'} != $parameters{'lineStyle'} or do { $self }->{'lineThickness'} != $parameters{'lineThickness'} or do { $self }->{'penColor'} != $parameters{'penColor'} or do { $self }->{'fillColor'} != $parameters{'fillColor'} or do { $self }->{'depth'} != $parameters{'depth'} or do { $self }->{'areaFill'} != $parameters{'areaFill'} or do { $self }->{'styleVal'} != $parameters{'styleVal'} or do { $self }->{'joinStyle'} != $parameters{'joinStyle'} or do { $self }->{'capStyle'} != $parameters{'capStyle'}
0 0 12 not defined $self && defined $finalPoint or $parameters{'detachedLineto'} or do { $position }->[0] != do { $finalPoint }->[0] or do { $position }->[1] != do { $finalPoint }->[1] or do { $self }->{'lineStyle'} != $parameters{'lineStyle'} or do { $self }->{'lineThickness'} != $parameters{'lineThickness'} or do { $self }->{'penColor'} != $parameters{'penColor'} or do { $self }->{'fillColor'} != $parameters{'fillColor'} or do { $self }->{'depth'} != $parameters{'depth'} or do { $self }->{'areaFill'} != $parameters{'areaFill'} or do { $self }->{'styleVal'} != $parameters{'styleVal'} or do { $self }->{'joinStyle'} != $parameters{'joinStyle'} or do { $self }->{'capStyle'} != $parameters{'capStyle'} or Graphics::Fig::Parameters::compareArrowParameters($self, \%parameters) != 0
806 0 0 5 not defined $nWidth or $nWidth <= 0
0 0 5 not defined $nWidth or $nWidth <= 0 or not defined $nHeight
0 0 5 not defined $nWidth or $nWidth <= 0 or not defined $nHeight or $nHeight <= 0
866 3 0 14 $subtype == 2 || $subtype == 4