Condition Coverage

lib/Graphics/Toolkit/Color/Space/Shape.pm
Criterion Covered Total %
condition 56 72 77.7


and 3 conditions

line !l l&&!r l&&r condition
17 1 1 129 ref $type eq "ARRAY" and @$type == $basis->axis_count
39 0 2 37 ref $properties eq "HASH" and keys %$properties == 3
44 0 0 105 exists $properties->{$_} and $properties->{$_}
0 3 102 exists $properties->{$_} and $properties->{$_} and not ref $properties->{$_}
66 314 0 1258 not ref $range and is_nr($range)
113 0 4 15193 defined $axis_nr and exists $self->{'type'}[$axis_nr]
119 0 1 64 defined $axis_nr and exists $self->{'type'}[$axis_nr]
139 0 0 16 defined $axis_nr and exists $self->{'type'}[$axis_nr]
142 0 0 15 ref $precision eq "ARRAY" and exists $precision->[$axis_nr]
183 78 212 19 $precision->[$axis_index] >= 0 and round_decimals($values->[$axis_index], $precision->[$axis_index]) != $values->[$axis_index]
198 3 2 3 $self->basis->is_value_tuple($values_a) and $self->basis->is_value_tuple($values_b)
289 0 58 3939 $self->is_axis_numeric($_) && $precision->[$_] >= 0
323 4 2 37 $self->basis->is_value_tuple($values1) and $self->basis->is_value_tuple($values2)

or 3 conditions

line l !l&&r !l&&!r condition
22 125 4 256 $atype eq "angular" or $atype eq "circular"
129 2 254 $atype eq "angular" or $atype eq "circular" or $atype eq 0
247 1 6 $atype eq "linear" or $atype eq 1
3 1 2 $atype eq "no" or $atype eq 2
36 1 1 38 ref $constraint ne "HASH" or not %$constraint
64 55 1173 344 not defined $range or $range eq "normal"
66 1258 313 1 not ref $range and is_nr($range) or ref $range eq "ARRAY"
141 0 15 0 $precision //= $self->{'precision'}
224 3 0 9 $values->[$axis_nr] < $range->[$axis_nr][0] or $values->[$axis_nr] > $range->[$axis_nr][1]
239 24 36 859 $values->[$axis_nr] < $range->[$axis_nr][0] or $values->[$axis_nr] > $range->[$axis_nr][1]
259 1 0 28 $default_value < $range->[$axis_nr][0] or $default_value > $range->[$axis_nr][1]