Branch Coverage

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


line true false branch
14 1 297 unless ref $basis eq "Graphics::Toolkit::Color::Space::Basis"
16 220 77 if (not defined $range or $range eq 'normal') { }
16 61 elsif (not ref $range and $range > 0) { }
56 5 elsif (ref $range eq 'ARRAY' and @$range == $basis->count) { }
27 110 58 if (not ref $drange and $drange > 0) { }
55 3 elsif (ref $drange eq 'ARRAY' and @$drange == 2 and defined $drange->[0] and defined $drange->[1] and $drange->[0] < $drange->[1]) { }
37 36 253 if (not defined $type) { }
250 3 elsif (ref $type eq 'ARRAY' and @$type == $basis->count) { }
41 0 752 unless defined $dtype
42 173 579 if ($dtype eq 'angle' or $dtype eq 'circular' or $dtype eq '0') { }
577 2 elsif ($dtype eq 'linear' or $dtype eq '1') { }
55 0 3219 unless ref $range eq "ARRAY" and exists $range->[$dnr]
57 713 2506 if $r->[0] == 0 and $r->[1] == 1
58 24 2482 if int $r->[0] != $r->[0]
59 0 2482 if int $r->[1] != $r->[1]
64 1237 217 unless defined $external_range
68 215 2 ref $external_range ? :
75 6 108 unless $self->basis->is_array($values1) and $self->basis->is_array($values2)
77 3 50 $delta[$_] > 0.5 ? :
17 53 $delta[$_] < -0.5 ? :
256 70 $self->{'type'}[$_] ? :
84 25 263 unless $self->basis->is_array($values)
87 0 263 unless ref $range
90 36 672 if $values->[$i] < $range->[$i][0]
91 36 636 if $values->[$i] > $range->[$i][1]
92 16 620 if $self->dimension_is_int($i, $range) and int $values->[$i] != $values->[$i]
101 1 259 unless ref $range
102 0 259 unless ref $values eq "ARRAY"
107 650 132 if ($self->{'type'}[$i]) { }
108 16 634 if $values->[$i] < $range->[$i][0]
109 16 634 if $values->[$i] > $range->[$i][1]
113 1 131 if $values->[$i] == $range->[$i][1]
115 732 50 if $self->dimension_is_int($i, $range)
124 0 237 unless $self->basis->is_array($values)
126 0 237 unless ref $range
132 0 600 unless $self->basis->is_array($values)
134 1 599 unless ref $range
136 1191 610 $self->dimension_is_int($_, $range) ? :
142 0 94 unless $self->basis->is_array($values)
144 0 94 unless ref $range