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
32 0 0 16 ref $formatter eq "ARRAY" and @$formatter > 0
33 0 0 16 exists $formatter->[0] and ref $formatter->[0] eq "CODE"
35 0 0 16 exists $formatter->[1] and ref $formatter->[1] eq "CODE"
42 0 0 512 ref $converter_data eq "ARRAY" and @$converter_data > 1
0 0 512 ref $converter_data eq "ARRAY" and @$converter_data > 1 and ref $converter_data->[0] eq "CODE"
0 0 512 ref $converter_data eq "ARRAY" and @$converter_data > 1 and ref $converter_data->[0] eq "CODE" and ref $converter_data->[1] eq "CODE"
50 0 0 16 ref $numifier->{'read'} eq "CODE" and ref $numifier->{'write'} eq "CODE"
96 0 550 2036 defined $_[1] && exists $_[0]{'convert'}{$_[0]->normalize_name($_[1])}
101 498 16 0 defined $normal and ref $normal ne "HASH"
103 0 514 0 exists $normal->{'from'} and not $normal->{'from'}
107 0 514 0 exists $normal->{'to'} and not $normal->{'to'}
117 0 0 517 $self->is_value_tuple($tuple) and defined $space_name
0 0 517 $self->is_value_tuple($tuple) and defined $space_name and $self->can_convert($space_name)
123 0 0 620 ref $tuple eq "ARRAY" and defined $space_name
0 0 620 ref $tuple eq "ARRAY" and defined $space_name and $self->can_convert($space_name)
129 0 0 848 $self->can_convert($space_name) and defined $direction
0 67 781 $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
99 0 0 514 not defined $space_name or ref $space_name
0 0 514 not defined $space_name or ref $space_name or ref $from_code ne "CODE"
0 0 514 not defined $space_name or ref $space_name or ref $from_code ne "CODE" or ref $to_code ne "CODE"
103 0 0 514 not exists $normal->{'from'} or exists $normal->{'from'} and not $normal->{'from'}
107 0 0 514 not exists $normal->{'to'} or exists $normal->{'to'} and not $normal->{'to'}
129 476 372 0 $direction eq 'from' || $direction eq 'to'