Condition Coverage

lib/Graphics/Toolkit/Color/Space.pm
Criterion Covered Total %
condition 27 69 39.1


and 3 conditions

line !l l&&!r l&&r condition
31 0 0 30 ref $formatter eq "ARRAY" and @$formatter > 0
32 0 0 30 exists $formatter->[0] and ref $formatter->[0] eq "CODE"
34 0 0 30 exists $formatter->[1] and ref $formatter->[1] eq "CODE"
41 0 0 435 ref $converter_data eq "ARRAY" and @$converter_data > 1
0 0 435 ref $converter_data eq "ARRAY" and @$converter_data > 1 and ref $converter_data->[0] eq "CODE"
0 0 435 ref $converter_data eq "ARRAY" and @$converter_data > 1 and ref $converter_data->[0] eq "CODE" and ref $converter_data->[1] eq "CODE"
49 0 0 15 ref $numifier->{'read'} eq "CODE" and ref $numifier->{'write'} eq "CODE"
91 0 468 998 defined $_[1] && exists $_[0]{'convert'}{$_[0]->normalize_name($_[1])}
96 422 15 0 defined $normal and ref $normal ne "HASH"
98 0 437 0 exists $normal->{'from'} and not $normal->{'from'}
102 0 437 0 exists $normal->{'to'} and not $normal->{'to'}
112 0 0 316 $self->is_value_tuple($tuple) and defined $space_name
0 0 316 $self->is_value_tuple($tuple) and defined $space_name and $self->can_convert($space_name)
118 0 0 282 ref $tuple eq "ARRAY" and defined $space_name
0 0 282 ref $tuple eq "ARRAY" and defined $space_name and $self->can_convert($space_name)
124 0 0 353 $self->can_convert($space_name) and defined $direction
0 34 319 $self->can_convert($space_name) and defined $direction and $direction eq 'from' || $direction eq 'to'

or 3 conditions

line l !l&&r !l&&!r condition
94 0 0 437 not defined $space_name or ref $space_name
0 0 437 not defined $space_name or ref $space_name or ref $from_code ne "CODE"
0 0 437 not defined $space_name or ref $space_name or ref $from_code ne "CODE" or ref $to_code ne "CODE"
98 0 0 437 not exists $normal->{'from'} or exists $normal->{'from'} and not $normal->{'from'}
102 0 0 437 not exists $normal->{'to'} or exists $normal->{'to'} and not $normal->{'to'}
124 160 193 0 $direction eq 'from' || $direction eq 'to'