Condition Coverage

lib/Graphics/Toolkit/Color/Space/Basis.pm
Criterion Covered Total %
condition 33 41 80.4


and 3 conditions

line !l l&&!r l&&r condition
12 431 34 1 defined $axis_short_names and ref $axis_short_names ne 'ARRAY' || @$axis_long_names != @$axis_short_names
38 4315 0 467 defined $alias and $alias
39 461 0 6 defined $given && $given
41 4259 0 56 defined $given && $given
55 537 527 32 $self->{'alias_name'} and $name eq $self->{'normal_alias'}
66 0 995 408 defined $_[1] && exists $_[0]{'long_name_order'}{lc $_[1]}
67 0 621 379 defined $_[1] && exists $_[0]{'short_name_order'}{lc $_[1]}
83 63 126 766 $key_count and $key_count <= $self->axis_count
85 559 0 601 $self->is_axis_name($axis_name) and defined $value_hash->{$axis_name}
93 117 119 5861 ref $_[1] eq 'ARRAY' && @{$_[1];} == $_[0]->axis_count

or 2 conditions

line l !l condition
25 245 220 $alias_name //= ""

or 3 conditions

line l !l&&r !l&&!r condition
12 0 1 34 ref $axis_short_names ne 'ARRAY' || @$axis_long_names != @$axis_short_names
24 275 190 0 $space_name //= $axis_initials
72 181 108 77 pos_from_long_axis_name(@_) // pos_from_short_axis_name(@_)