Condition Coverage

lib/ICC/Support/Color.pm
Criterion Covered Total %
condition 1 299 0.3


and 3 conditions

line !l l&&!r l&&r condition
73 1 0 0 @_ == 1 and ref $_[0] eq 'HASH'
103 0 0 0 @_ == 1 and ref $_[0] eq 'HASH'
139 0 0 0 @_ == 1 and ref $_[0] eq 'ARRAY'
154 0 0 0 ref $array->[0] eq 'ARRAY' and 3 == @{$array->[0];}
0 0 0 ref $array->[0] eq 'ARRAY' and 3 == @{$array->[0];} and 3 == grep({&Scalar::Util::looks_like_number($_);} @{$$array[0];})
0 0 0 ref $array->[0] eq 'ARRAY' and 3 == @{$array->[0];} and 3 == grep({&Scalar::Util::looks_like_number($_);} @{$$array[0];}) and $array->[0][2]
160 0 0 0 ref $array->[1] eq 'ARRAY' and $#{$$array[1];} == $sx
0 0 0 ref $array->[1] eq 'ARRAY' and $#{$$array[1];} == $sx and @{$array->[1];} == grep({&Scalar::Util::looks_like_number($_);} @{$$array[1];})
206 0 0 0 @_ == 1 and ref $_[0] eq 'ARRAY'
221 0 0 0 ref $array->[0] eq 'ARRAY' and 3 == @{$array->[0];}
0 0 0 ref $array->[0] eq 'ARRAY' and 3 == @{$array->[0];} and 3 == grep({&Scalar::Util::looks_like_number($_);} @{$$array[0];})
0 0 0 ref $array->[0] eq 'ARRAY' and 3 == @{$array->[0];} and 3 == grep({&Scalar::Util::looks_like_number($_);} @{$$array[0];}) and $array->[0][2]
227 0 0 0 ref $array->[1] eq 'ARRAY' || UNIVERSAL::isa($array->[1], 'Math::Matrix') and ref $array->[1][0] eq 'ARRAY'
0 0 0 ref $array->[1] eq 'ARRAY' || UNIVERSAL::isa($array->[1], 'Math::Matrix') and ref $array->[1][0] eq 'ARRAY' and $#{$$array[1][0];} == $sx
0 0 0 ref $array->[1] eq 'ARRAY' || UNIVERSAL::isa($array->[1], 'Math::Matrix') and ref $array->[1][0] eq 'ARRAY' and $#{$$array[1][0];} == $sx and @{$array->[1][0];} == grep({&Scalar::Util::looks_like_number($_);} @{$$array[1][0];})
272 0 0 0 @_ == 1 and ref $_[0] eq 'ARRAY'
287 0 0 0 ref $array->[0] eq 'ARRAY' and 3 == @{$array->[0];}
0 0 0 ref $array->[0] eq 'ARRAY' and 3 == @{$array->[0];} and 3 == grep({&Scalar::Util::looks_like_number($_);} @{$$array[0];})
0 0 0 ref $array->[0] eq 'ARRAY' and 3 == @{$array->[0];} and 3 == grep({&Scalar::Util::looks_like_number($_);} @{$$array[0];}) and $array->[0][2]
293 0 0 0 ref $array->[1] eq 'ARRAY' || UNIVERSAL::isa($array->[1], 'Math::Matrix') and ref $array->[1][0] eq 'ARRAY'
0 0 0 ref $array->[1] eq 'ARRAY' || UNIVERSAL::isa($array->[1], 'Math::Matrix') and ref $array->[1][0] eq 'ARRAY' and $#{$$array[1][0];} == $sx
0 0 0 ref $array->[1] eq 'ARRAY' || UNIVERSAL::isa($array->[1], 'Math::Matrix') and ref $array->[1][0] eq 'ARRAY' and $#{$$array[1][0];} == $sx and @{$array->[1][0];} == grep({&Scalar::Util::looks_like_number($_);} @{$$array[1][0];})
357 0 0 0 defined $_[0][3][0] and defined $_[0][3][1]
360 0 0 0 @_ == $h + 2 and UNIVERSAL::isa($_[1], 'Math::Matrix')
0 0 0 @_ == $h + 2 and ref $_[1] eq 'ARRAY'
369 0 0 0 not ref $_[1][0] and @{$_[1];} == grep({&Scalar::Util::looks_like_number($_);} @{$_[1];})
0 0 0 ref $_[1][0] eq 'ARRAY' and @{$_[1];} == grep({&Scalar::Util::looks_like_number($_->[0]) if ref $_ eq 'ARRAY';} @{$_[1];})
442 0 0 0 defined($encoding = $hash->{'encoding'}) and $encoding ne 'XYZ'
0 0 0 defined($encoding = $hash->{'encoding'}) and $encoding ne 'XYZ' and $encoding ne 'RGBV'
445 0 0 0 $encoding eq 'ICC_XYZ' and @{$jac;} == 3
0 0 0 $encoding eq 'ICC_XYZNumber' and @{$jac;} == 3
0 0 0 $encoding eq 'xyz' and @{$jac;} == 3
0 0 0 $encoding eq 'unit' and @{$jac;} == 4
0 0 0 $encoding eq 'density' and @{$jac;} == 4
480 0 0 0 $self->[5][0] and $self->[5][1]
0 0 0 $self->[5][0] and $self->[5][1] and $self->[5][2]
521 0 0 0 $out->[0] and $out->[1]
0 0 0 $out->[0] and $out->[1] and $out->[2]
0 0 0 $out->[0] and $out->[1] and $out->[2] and $out->[3]
581 0 0 0 defined $p->[0] && !ref($p->[0])
813 0 0 0 defined $self->[4][0] and $self->[4][0][0] == $range_data->[0]
0 0 0 defined $self->[4][0] and $self->[4][0][0] == $range_data->[0] and $self->[4][0][1] == $range_data->[1]
0 0 0 defined $self->[4][0] and $self->[4][0][0] == $range_data->[0] and $self->[4][0][1] == $range_data->[1] and $self->[4][0][2] == $range_data->[2]
950 0 0 0 ref $bandpass eq 'ARRAY' and $#{$bandpass;} == $jx
1024 0 0 0 abs $i - $j == 1 and $i > 0
0 0 0 abs $i - $j == 1 and $i > 0 and $i < $ix
0 0 0 abs $i - $j == 2 and $i > 0
0 0 0 abs $i - $j == 2 and $i > 0 and $i < $ix
1083 0 0 0 $shape >= 0 and $shape <= 1
1086 0 0 0 $ix == int $ix and not $ix % 4
1135 0 0 0 $ix == int $ix and $ix >= 0
1180 0 0 0 defined $self->[4][0] and $self->[4][0][0] == $range_data->[0]
0 0 0 defined $self->[4][0] and $self->[4][0][0] == $range_data->[0] and $self->[4][0][1] == $range_data->[1]
0 0 0 defined $self->[4][0] and $self->[4][0][0] == $range_data->[0] and $self->[4][0][1] == $range_data->[1] and $self->[4][0][2] == $range_data->[2]
1203 0 0 0 $bandpass and $bandpass ne 'six'
1481 0 0 0 &Scalar::Util::looks_like_number($s) and $s == int $s
0 0 0 &Scalar::Util::looks_like_number($s) and $s == int $s and $s > 0
0 0 0 &Scalar::Util::looks_like_number($s) and $s == int $s and $s > 0 and $s <= $illum->size
1508 0 0 0 ref $array->[0] eq 'ARRAY' and 3 == @{$array->[0];}
0 0 0 ref $array->[0] eq 'ARRAY' and 3 == @{$array->[0];} and 3 == grep({&Scalar::Util::looks_like_number($_);} @{$$array[0];})
0 0 0 ref $array->[0] eq 'ARRAY' and 3 == @{$array->[0];} and 3 == grep({&Scalar::Util::looks_like_number($_);} @{$$array[0];}) and $array->[0][2]
1514 0 0 0 ref $array->[1] eq 'ARRAY' and $#{$$array[1];} == $sx
0 0 0 ref $array->[1] eq 'ARRAY' and $#{$$array[1];} == $sx and @{$array->[1];} == grep({&Scalar::Util::looks_like_number($_);} @{$$array[1];})
1565 0 0 0 ref $obs->[0] eq 'ARRAY' and @{$obs->[0];} == grep({&Scalar::Util::looks_like_number($_);} @{$$obs[0];})
0 0 0 ref $obs->[0] eq 'ARRAY' and @{$obs->[0];} == grep({&Scalar::Util::looks_like_number($_);} @{$$obs[0];}) and @{$obs->[0];} == 3
0 0 0 ref $obs->[0] eq 'ARRAY' and @{$obs->[0];} == grep({&Scalar::Util::looks_like_number($_);} @{$$obs[0];}) and @{$obs->[0];} == 3 and $obs->[0][2]
0 0 0 ref $obs->[0] eq 'ARRAY' and @{$obs->[0];} == grep({&Scalar::Util::looks_like_number($_);} @{$$obs[0];}) and @{$obs->[0];} == 3 and $obs->[0][2] and not +($obs->[0][1] - $obs->[0][0]) % $obs->[0][2]
1572 0 0 0 ref $obs->[1] eq 'ARRAY' || UNIVERSAL::isa($obs->[1], 'Math::Matrix') and ref $obs->[1][0] eq 'ARRAY'
0 0 0 ref $obs->[1] eq 'ARRAY' || UNIVERSAL::isa($obs->[1], 'Math::Matrix') and ref $obs->[1][0] eq 'ARRAY' and $#{$$obs[1][0];} == $sx
0 0 0 ref $obs->[1] eq 'ARRAY' || UNIVERSAL::isa($obs->[1], 'Math::Matrix') and ref $obs->[1][0] eq 'ARRAY' and $#{$$obs[1][0];} == $sx and @{$obs->[1][0];} == grep({&Scalar::Util::looks_like_number($_);} @{$$obs[1][0];})
1661 0 0 0 defined $hash->{'bandpass'} && $hash->{'bandpass'} eq 'six'
1795 0 0 0 defined($encoding = $hash->{'encoding'}) and not $encoding =~ /^(XYZ|RGBV|linear)$/
1801 0 0 0 $encoding eq 'ICC_XYZ' and $size == 3
0 0 0 $encoding eq 'ICC_XYZNumber' and $size == 3
0 0 0 $encoding eq 'xyz' and $size == 3
0 0 0 $encoding eq 'unit' and $size == 4
0 0 0 $encoding eq 'density' and $size == 4
1816 0 0 0 $self->[5][0] and $self->[5][1]
0 0 0 $self->[5][0] and $self->[5][1] and $self->[5][2]
1866 0 0 0 ref $range eq 'ARRAY' and 3 == @{$range;}
0 0 0 ref $range eq 'ARRAY' and 3 == @{$range;} and 3 == grep({&Scalar::Util::looks_like_number($_);} @{$range;})
1872 0 0 0 $ox > 0 and abs $ox * $range->[2] - $range->[1] + $range->[0] < 1e-12
0 0 0 $ox > 0 and abs $ox * $range->[2] - $range->[1] + $range->[0] < 1e-12 and $range->[2] > 0
1880 0 0 0 defined $hash->{'status'} and not ref $hash->{'status'}
0 0 0 defined $hash->{'illuminant'} and ref $hash->{'illuminant'} eq 'ARRAY'

or 2 conditions

line l !l condition
824 0 0 $self->[0]{'method'} // 'cspline'
827 0 0 $self->[0]{'bandpass'} // 0
1191 0 0 $self->[0]{'bandpass'} // 0
1306 0 0 $self->[0]{'increment'} // 1

or 3 conditions

line l !l&&r !l&&!r condition
227 0 0 0 ref $array->[1] eq 'ARRAY' || UNIVERSAL::isa($array->[1], 'Math::Matrix')
293 0 0 0 ref $array->[1] eq 'ARRAY' || UNIVERSAL::isa($array->[1], 'Math::Matrix')
420 0 0 0 $hash->{'range'} || $$srh{@{$in;}}
625 0 0 0 $hash->{'range'} || $$srh{@{$in;}}
684 0 0 0 $hash->{'range'} || $$srh{@{$in->[0];}}
1026 0 0 0 $i == 0 or $i == $ix
0 0 0 $i == 1 or $i == $ix - 1
1043 0 0 0 $j == 0 or $j == $ix
1355 0 0 0 $smooth == 0 || $smooth > 0.001
0 0 0 $self->[0]{'imethod'} // ($smooth == 0 || $smooth > 0.001)
1399 0 0 0 $self->[0]{'cwf_ks'} // 100 / ICC::Shared::dotProduct($spd, $obs->[1])
1572 0 0 0 ref $obs->[1] eq 'ARRAY' || UNIVERSAL::isa($obs->[1], 'Math::Matrix')