Condition Coverage

blib/lib/ICC/Profile/cvst.pm
Criterion Covered Total %
condition 2 212 0.9


and 3 conditions

line !l l&&!r l&&r condition
48 0 0 4 @_ == 1 and ref $_[0] eq 'ARRAY'
0 0 0 @_ == 1 and not ref $_[0]
209 0 0 0 @_ == $h + 2 and UNIVERSAL::isa($_[1], 'Math::Matrix')
0 0 0 @_ == $h + 2 and ref $_[1] eq 'ARRAY'
218 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];})
266 0 0 0 @_ == $h + 2 and UNIVERSAL::isa($_[1], 'Math::Matrix')
0 0 0 @_ == $h + 2 and ref $_[1] eq 'ARRAY'
275 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];})
379 0 0 0 ICC::Shared::is_num_matrix($s) && @{$s;} == @{$self->[1];}
388 0 0 0 $type == 1 and not @{$s;}
0 0 0 $type == 2 and not @{$s->[$i];}
462 0 0 0 @_ == 1 and ref $_[0] eq 'HASH'
502 0 0 0 $array->[$i]->can('transform') and $array->[$i]->can('derivative')
755 0 0 0 $dir == 0 and UNIVERSAL::isa($self->[1][$i], 'ICC::Profile::curv') || UNIVERSAL::isa($self->[1][$i], 'ICC::Profile::para')
1153 0 0 0 $_ == 0 && $zflag
1479 0 0 0 defined $vars->{'FreqFrom'} && defined $vars->{'FreqFrom'}
2059 0 0 0 ref $files eq 'ARRAY' and defined $files->[0]
0 0 0 ref $files eq 'ARRAY' and defined $files->[0] and -f $files->[0]
0 0 0 ref $files eq 'ARRAY' and defined $files->[0] and -f $files->[0] and defined $RGraph
2098 0 0 0 not @fox and time < $timeout
2109 0 0 0 $flag and time < $timeout
2232 0 0 0 defined $p->[0] && !ref($p->[0])
2620 0 0 0 defined $1 && exists $std->{$1}
2761 0 0 0 @data > 1 and @{$data[0];} > 1
2975 0 0 0 $buf =~ /<\?xml.*\?>/ and $buf =~ /ISO18620/
0 0 0 $buf =~ /<\?xml.*\?>/ and $buf =~ /colDgc_xml/
3062 0 0 11 $array->[$i]->can('transform') and $array->[$i]->can('derivative')
3175 0 0 0 $n > 0 and $n < 16

or 2 conditions

line l !l condition
1141 0 0 $opts->{'origin'} // 0
1220 0 0 $opts->{'colorspace'} // 'DeviceCMYK'
1469 0 0 $vars->{'FirstName'} // 'PressCal'
1470 0 0 $vars->{'ID'} // '0001'
1471 0 0 $vars->{'Enabled'} // 'FALSE'
1472 0 0 $vars->{'CurveSet'} // 'CmykCurves'
1473 0 0 $vars->{'SpotFunctionMode'} // 'UserDefined'
1917 0 0 $opts->{'lib'} // 'lib'
1920 0 0 $opts->{'yscalemin'} // 0
1921 0 0 $opts->{'yscalemax'} // 1
1947 0 0 $opts->{'titles'}[0] // 'composite tone curves'
1953 0 0 $opts->{'files'}[0] // 'composite'
2038 0 0 $opts->{'open'} // 1
2644 0 0 $opts->{'dir'} // 0
2755 0 0 $cnt[$a] // 0
0 0 $cnt[$b] // 0

or 3 conditions

line l !l&&r !l&&!r condition
388 0 0 0 $type == 1 and not @{$s;} or $type == 2 and not @{$s->[$i];}
535 0 0 0 UNIVERSAL::isa($self->[1][$i], 'ICC::Profile::para') or UNIVERSAL::isa($self->[1][$i], 'ICC::Profile::parf')
755 0 0 0 UNIVERSAL::isa($self->[1][$i], 'ICC::Profile::curv') || UNIVERSAL::isa($self->[1][$i], 'ICC::Profile::para')
1099 0 0 0 $opts->{'inks'}[$i] // $self->[0]{'inks'}[$i]
0 0 0 ($opts->{'inks'}[$i] // $self->[0]{'inks'}[$i]) // $inks[$i]
0 0 0 (($opts->{'inks'}[$i] // $self->[0]{'inks'}[$i]) // $inks[$i]) // sprintf('ink%d', $i + 1)
1122 0 0 0 not defined $opts->{'Side'} or $opts->{'Side'} eq 'Front'
0 0 0 not defined $opts->{'Side'} or $opts->{'Side'} eq 'Front' or $opts->{'Side'} eq 'Back'
1194 0 0 0 $opts->{'inks'}[$i] // $self->[0]{'inks'}[$i]
0 0 0 ($opts->{'inks'}[$i] // $self->[0]{'inks'}[$i]) // $inks[$i]
0 0 0 (($opts->{'inks'}[$i] // $self->[0]{'inks'}[$i]) // $inks[$i]) // sprintf('ink%d', $i + 1)
1217 0 0 0 $opts->{'name'} // 'PressCal Calset ' . time
1437 0 0 0 $opts->{'inks'}[$i] // $self->[0]{'inks'}[$i]
0 0 0 ($opts->{'inks'}[$i] // $self->[0]{'inks'}[$i]) // $inks[$i]
0 0 0 (($opts->{'inks'}[$i] // $self->[0]{'inks'}[$i]) // $inks[$i]) // sprintf('ink%d', $i + 1)
1906 0 0 0 $opts->{'inks'}[$i] // $self->[0]{'inks'}[$i]
0 0 0 ($opts->{'inks'}[$i] // $self->[0]{'inks'}[$i]) // $inks[$i]
0 0 0 (($opts->{'inks'}[$i] // $self->[0]{'inks'}[$i]) // $inks[$i]) // sprintf('ink%d', $i + 1)
1914 0 0 0 $exc{$_} // $_
1979 0 0 0 $opts->{'titles'}[$i] // "$inks[$i] tone curve"
1985 0 0 0 $opts->{'files'}[$i] // $inks[$i]
2016 0 0 0 $opts->{'files'}[$i] // $inks[$i]
2313 0 0 0 $self->[0]{'clip'} or $hash->{'clip'}
2340 0 0 0 $self->[0]{'clip'} or $hash->{'clip'}
2372 0 0 0 $self->[0]{'clip'} or $hash->{'clip'}
2391 0 0 0 $self->[0]{'clip'} or $hash->{'clip'}
2459 0 0 0 $self->[0]{'clip'} or $hash->{'clip'}
2486 0 0 0 $self->[0]{'clip'} or $hash->{'clip'}
2518 0 0 0 $self->[0]{'clip'} or $hash->{'clip'}
2537 0 0 0 $self->[0]{'clip'} or $hash->{'clip'}