Branch Coverage

lib/Graphics/Toolkit/Color/Space/Shape.pm
Criterion Covered Total %
branch 70 80 87.5


line true false branch
14 1 287 unless ref $basis eq "Graphics::Toolkit::Color::Space::Basis"
16 212 75 if (not defined $range or $range eq 'normal') { }
16 59 elsif (not ref $range and $range > 0) { }
54 5 elsif (ref $range eq 'ARRAY' and @$range == $basis->count) { }
27 108 54 if (not ref $drange and $drange > 0) { }
51 3 elsif (ref $drange eq 'ARRAY' and @$drange == 2 and defined $drange->[0] and defined $drange->[1] and $drange->[0] < $drange->[1]) { }
37 34 245 if (not defined $type) { }
242 3 elsif (ref $type eq 'ARRAY' and @$type == $basis->count) { }
41 0 728 unless defined $dtype
42 165 563 if ($dtype eq 'angle' or $dtype eq 'circular' or $dtype eq '0') { }
561 2 elsif ($dtype eq 'linear' or $dtype eq '1') { }
55 0 3123 unless ref $range eq "ARRAY" and exists $range->[$dnr]
57 675 2448 if $r->[0] == 0 and $r->[1] == 1
58 8 2440 if int $r->[0] != $r->[0]
59 0 2440 if int $r->[1] != $r->[1]
64 1190 209 unless defined $external_range
68 207 2 ref $external_range ? :
75 6 104 unless $self->basis->is_array($values1) and $self->basis->is_array($values2)
77 3 48 $delta[$_] > 0.5 ? :
15 51 $delta[$_] < -0.5 ? :
248 66 $self->{'type'}[$_] ? :
84 21 238 unless $self->basis->is_array($values)
87 0 238 unless ref $range
90 30 615 if $values->[$i] < $range->[$i][0]
91 30 585 if $values->[$i] > $range->[$i][1]
92 16 569 if $self->dimension_is_int($i, $range) and int $values->[$i] != $values->[$i]
101 1 248 unless ref $range
102 0 248 unless ref $values eq "ARRAY"
107 629 120 if ($self->{'type'}[$i]) { }
108 11 618 if $values->[$i] < $range->[$i][0]
109 22 607 if $values->[$i] > $range->[$i][1]
113 1 119 if $values->[$i] == $range->[$i][1]
115 699 50 if $self->dimension_is_int($i, $range)
124 0 226 unless $self->basis->is_array($values)
126 0 226 unless ref $range
132 0 596 unless $self->basis->is_array($values)
134 1 595 unless ref $range
136 1203 586 $self->dimension_is_int($_, $range) ? :
142 0 90 unless $self->basis->is_array($values)
144 0 90 unless ref $range