Condition Coverage

lib/Graphics/Toolkit/Color/Space/Shape.pm
Criterion Covered Total %
condition 61 81 75.3


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 52 ref $properties eq "HASH" and keys %$properties == 3
44 0 0 150 exists $properties->{$_} and $properties->{$_}
0 3 147 exists $properties->{$_} and $properties->{$_} and not ref $properties->{$_}
66 328 0 866 not ref $range and is_nr($range)
76 5 0 13 exists $range_array->[$axis_index] and defined $range_array->[$axis_index]
77 3 0 2 ref $self and ref $self->{'range'}
127 0 4 12006 defined $axis_nr and exists $self->{'type'}[$axis_nr]
133 0 1 64 defined $axis_nr and exists $self->{'type'}[$axis_nr]
153 0 0 16 defined $axis_nr and exists $self->{'type'}[$axis_nr]
156 0 0 15 ref $precision eq "ARRAY" and exists $precision->[$axis_nr]
197 66 371 19 $precision->[$axis_index] >= 0 and round_decimals($tuple->[$axis_index], $precision->[$axis_index]) != $tuple->[$axis_index]
212 3 2 3 $self->basis->is_value_tuple($tuple_a) and $self->basis->is_value_tuple($tuple_b)
299 0 17 3363 $self->is_axis_numeric($_) && $precision->[$_] >= 0
333 4 2 53 $self->basis->is_value_tuple($tuple1) and $self->basis->is_value_tuple($tuple2)

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 53 ref $constraint ne "HASH" or not %$constraint
64 235 594 365 not defined $range or $range eq "normal"
66 866 322 6 not ref $range and is_nr($range) or ref $range eq "ARRAY"
1188 6 0 not ref $range and is_nr($range) or ref $range eq "ARRAY" or ref $range eq "HASH"
155 0 15 0 $precision //= $self->{'precision'}
237 1 0 0 $tuple->[$axis_nr] < $range->[$axis_nr][0] or $tuple->[$axis_nr] > $range->[$axis_nr][1]
249 25 41 887 $tuple->[$axis_nr] < $range->[$axis_nr][0] or $tuple->[$axis_nr] > $range->[$axis_nr][1]
269 1 0 79 $default_value < $range->[$axis_nr][0] or $default_value > $range->[$axis_nr][1]