Condition Coverage

lib/Graphics/Toolkit/Color/Space/Basis.pm
Criterion Covered Total %
condition 45 60 75.0


and 3 conditions

line !l l&&!r l&&r condition
13 507 36 1 defined $axis_short_names and ref $axis_short_names ne 'ARRAY' || @$axis_long_names != @$axis_short_names
20 47 496 0 defined $family and ref $family
21 399 144 0 defined $axis_role_names and not defined $family
22 399 144 0 defined $axis_role_names and ref $axis_role_names ne 'ARRAY' || @$axis_role_names != @$axis_long_names
49 7970 68 0 defined $given and not $given
50 7493 0 545 defined $alias and $alias
66 1120 1088 40 $self->{'alias_name'} and $name eq $self->{'normal_alias'}
77 0 1131 445 defined $_[1] && exists $_[0]{'long_name_order'}{lc $_[1]}
78 0 701 435 defined $_[1] && exists $_[0]{'short_name_order'}{lc $_[1]}
79 0 28 0 defined $_[1] && exists $_[0]{'role_name_order'}{lc $_[1]}
98 36 141 857 $key_count and $key_count <= $self->axis_count
100 626 0 658 $self->is_axis_name($axis_name) and defined $value_hash->{$axis_name}
108 1155 1097 8195 ref $_[1] eq 'ARRAY' && @{$_[1];} == $_[0]->axis_count

or 2 conditions

line l !l condition
30 261 282 $alias_name //= ""
35 496 47 $family // ""
144 399 $axis_role_names // []

or 3 conditions

line l !l&&r !l&&!r condition
13 0 1 36 ref $axis_short_names ne 'ARRAY' || @$axis_long_names != @$axis_short_names
22 0 0 144 ref $axis_role_names ne 'ARRAY' || @$axis_role_names != @$axis_long_names
29 357 186 0 $space_name //= $axis_initials
86 260 137 98 pos_from_long_axis_name(@_) // pos_from_short_axis_name(@_)
87 0 55 33 pos_from_axis_role_name(@_) // pos_from_axis_name(@_)