Branch Coverage

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


line true false branch
19 0 458 if @_ % 2
22 1 457 unless ref $basis
24 0 457 unless ref $shape
26 0 457 unless ref $format
28 15 442 if (ref $args{'format'} eq "HASH")
31 0 30 unless ref $formatter eq "ARRAY" and @$formatter > 0
32 30 0 if exists $formatter->[0] and ref $formatter->[0] eq "CODE"
34 30 0 if exists $formatter->[1] and ref $formatter->[1] eq "CODE"
38 435 22 if (ref $args{'convert'} eq "HASH")
41 0 435 unless ref $converter_data eq "ARRAY" and @$converter_data > 1 and ref $converter_data->[0] eq "CODE" and ref $converter_data->[1] eq "CODE"
46 15 442 if (ref $args{'values'} eq "HASH")
49 15 0 if ref $numifier->{'read'} eq "CODE" and ref $numifier->{'write'} eq "CODE"
91 998 468 defined $_[1] && exists $_[0]{'convert'}{$_[0]->normalize_name($_[1])} ? :
94 0 437 if not defined $space_name or ref $space_name or ref $from_code ne "CODE" or ref $to_code ne "CODE"
95 0 437 if $self->can_convert($space_name)
96 0 437 if defined $normal and ref $normal ne "HASH"
97 422 15 unless ref $normal
98 0 437 if not exists $normal->{'from'} or exists $normal->{'from'} and not $normal->{'from'}
99 422 15 unless ref $normal->{'from'}
100 0 437 unless exists $normal->{'from'}{'in'}
101 15 422 unless exists $normal->{'from'}{'out'}
102 0 437 if not exists $normal->{'to'} or exists $normal->{'to'} and not $normal->{'to'}
103 422 15 unless ref $normal->{'to'}
104 15 422 unless exists $normal->{'to'}{'in'}
105 0 437 unless exists $normal->{'to'}{'out'}
112 0 316 unless $self->is_value_tuple($tuple) and defined $space_name and $self->can_convert($space_name)
118 0 282 unless ref $tuple eq "ARRAY" and defined $space_name and $self->can_convert($space_name)
124 0 353 unless $self->can_convert($space_name) and defined $direction and $direction eq 'from' || $direction eq 'to'