Condition Coverage

lib/Graphics/Toolkit/Color/Space.pm
Criterion Covered Total %
condition 26 69 37.6


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 255 ref $converter eq "ARRAY" and @$converter > 1
0 0 255 ref $converter eq "ARRAY" and @$converter > 1 and ref $converter->[0] eq "CODE"
0 0 255 ref $converter eq "ARRAY" and @$converter > 1 and ref $converter->[0] eq "CODE" and ref $converter->[1] eq "CODE"
49 0 0 15 ref $numifier->{'read'} eq "CODE" and ref $numifier->{'write'} eq "CODE"
93 0 271 696 defined $_[1] && exists $_[0]{'convert'}{uc $_[1]}
98 257 0 0 defined $normal and ref $normal ne "HASH"
100 0 257 0 exists $normal->{'from'} and not $normal->{'from'}
104 0 257 0 exists $normal->{'to'} and not $normal->{'to'}
113 0 0 212 $self->is_value_tuple($values) and defined $space_name
0 0 212 $self->is_value_tuple($values) and defined $space_name and $self->can_convert($space_name)
118 0 0 196 ref $values eq "ARRAY" and defined $space_name
0 0 196 ref $values eq "ARRAY" and defined $space_name and $self->can_convert($space_name)
124 0 0 269 $self->can_convert($space_name) and defined $direction
0 51 218 $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
96 0 0 257 not defined $space_name or ref $space_name
0 0 257 not defined $space_name or ref $space_name or ref $from_code ne "CODE"
0 0 257 not defined $space_name or ref $space_name or ref $from_code ne "CODE" or ref $to_code ne "CODE"
100 0 0 257 not exists $normal->{'from'} or exists $normal->{'from'} and not $normal->{'from'}
104 0 0 257 not exists $normal->{'to'} or exists $normal->{'to'} and not $normal->{'to'}
124 127 142 0 $direction eq 'from' || $direction eq 'to'