Branch Coverage

lib/Graphics/Toolkit/Color/Space.pm
Criterion Covered Total %
branch 38 56 67.8


line true false branch
19 0 536 if @_ % 2
23 1 535 unless ref $basis
25 0 535 unless ref $shape
27 0 535 unless ref $format
29 16 519 if (ref $args{'format'} eq "HASH")
32 0 16 unless ref $formatter eq "ARRAY" and @$formatter > 0
33 16 0 if exists $formatter->[0] and ref $formatter->[0] eq "CODE"
35 16 0 if exists $formatter->[1] and ref $formatter->[1] eq "CODE"
39 512 23 if (ref $args{'convert'} eq "HASH")
42 0 512 unless ref $converter_data eq "ARRAY" and @$converter_data > 1 and ref $converter_data->[0] eq "CODE" and ref $converter_data->[1] eq "CODE"
47 16 519 if (ref $args{'values'} eq "HASH")
50 16 0 if ref $numifier->{'read'} eq "CODE" and ref $numifier->{'write'} eq "CODE"
96 2036 550 defined $_[1] && exists $_[0]{'convert'}{$_[0]->normalize_name($_[1])} ? :
99 0 514 if not defined $space_name or ref $space_name or ref $from_code ne "CODE" or ref $to_code ne "CODE"
100 0 514 if $self->can_convert($space_name)
101 0 514 if defined $normal and ref $normal ne "HASH"
102 498 16 unless ref $normal
103 0 514 if not exists $normal->{'from'} or exists $normal->{'from'} and not $normal->{'from'}
104 498 16 unless ref $normal->{'from'}
105 0 514 unless exists $normal->{'from'}{'in'}
106 16 498 unless exists $normal->{'from'}{'out'}
107 0 514 if not exists $normal->{'to'} or exists $normal->{'to'} and not $normal->{'to'}
108 498 16 unless ref $normal->{'to'}
109 16 498 unless exists $normal->{'to'}{'in'}
110 0 514 unless exists $normal->{'to'}{'out'}
117 0 517 unless $self->is_value_tuple($tuple) and defined $space_name and $self->can_convert($space_name)
123 0 620 unless ref $tuple eq "ARRAY" and defined $space_name and $self->can_convert($space_name)
129 0 848 unless $self->can_convert($space_name) and defined $direction and $direction eq 'from' || $direction eq 'to'