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
45 0 0 4 @_ == 1 and ref $_[0] eq 'ARRAY'
0 0 0 @_ == 1 and not ref $_[0]
206 0 0 0 @_ == $h + 2 and UNIVERSAL::isa($_[1], 'Math::Matrix')
0 0 0 @_ == $h + 2 and ref $_[1] eq 'ARRAY'
215 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];})
263 0 0 0 @_ == $h + 2 and UNIVERSAL::isa($_[1], 'Math::Matrix')
0 0 0 @_ == $h + 2 and ref $_[1] eq 'ARRAY'
272 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];})
376 0 0 0 ICC::Shared::is_num_matrix($s) && @{$s;} == @{$self->[1];}
385 0 0 0 $type == 1 and not @{$s;}
0 0 0 $type == 2 and not @{$s->[$i];}
459 0 0 0 @_ == 1 and ref $_[0] eq 'HASH'
499 0 0 0 $array->[$i]->can('transform') and $array->[$i]->can('derivative')
752 0 0 0 $dir == 0 and UNIVERSAL::isa($self->[1][$i], 'ICC::Profile::curv') || UNIVERSAL::isa($self->[1][$i], 'ICC::Profile::para')
1150 0 0 0 $_ == 0 && $zflag
1476 0 0 0 defined $vars->{'FreqFrom'} && defined $vars->{'FreqFrom'}
2056 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
2095 0 0 0 not @fox and time < $timeout
2106 0 0 0 $flag and time < $timeout
2229 0 0 0 defined $p->[0] && !ref($p->[0])
2617 0 0 0 defined $1 && exists $std->{$1}
2758 0 0 0 @data > 1 and @{$data[0];} > 1
2972 0 0 0 $buf =~ /<\?xml.*\?>/ and $buf =~ /ISO18620/
0 0 0 $buf =~ /<\?xml.*\?>/ and $buf =~ /colDgc_xml/
3059 0 0 11 $array->[$i]->can('transform') and $array->[$i]->can('derivative')
3172 0 0 0 $n > 0 and $n < 16

or 2 conditions

line l !l condition
1138 0 0 $opts->{'origin'} // 0
1217 0 0 $opts->{'colorspace'} // 'DeviceCMYK'
1466 0 0 $vars->{'FirstName'} // 'PressCal'
1467 0 0 $vars->{'ID'} // '0001'
1468 0 0 $vars->{'Enabled'} // 'FALSE'
1469 0 0 $vars->{'CurveSet'} // 'CmykCurves'
1470 0 0 $vars->{'SpotFunctionMode'} // 'UserDefined'
1914 0 0 $opts->{'lib'} // 'lib'
1917 0 0 $opts->{'yscalemin'} // 0
1918 0 0 $opts->{'yscalemax'} // 1
1944 0 0 $opts->{'titles'}[0] // 'composite tone curves'
1950 0 0 $opts->{'files'}[0] // 'composite'
2035 0 0 $opts->{'open'} // 1
2641 0 0 $opts->{'dir'} // 0
2752 0 0 $cnt[$a] // 0
0 0 $cnt[$b] // 0

or 3 conditions

line l !l&&r !l&&!r condition
385 0 0 0 $type == 1 and not @{$s;} or $type == 2 and not @{$s->[$i];}
532 0 0 0 UNIVERSAL::isa($self->[1][$i], 'ICC::Profile::para') or UNIVERSAL::isa($self->[1][$i], 'ICC::Profile::parf')
752 0 0 0 UNIVERSAL::isa($self->[1][$i], 'ICC::Profile::curv') || UNIVERSAL::isa($self->[1][$i], 'ICC::Profile::para')
1096 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)
1119 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'
1191 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)
1214 0 0 0 $opts->{'name'} // 'PressCal Calset ' . time
1434 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)
1903 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)
1911 0 0 0 $exc{$_} // $_
1976 0 0 0 $opts->{'titles'}[$i] // "$inks[$i] tone curve"
1982 0 0 0 $opts->{'files'}[$i] // $inks[$i]
2013 0 0 0 $opts->{'files'}[$i] // $inks[$i]
2310 0 0 0 $self->[0]{'clip'} or $hash->{'clip'}
2337 0 0 0 $self->[0]{'clip'} or $hash->{'clip'}
2369 0 0 0 $self->[0]{'clip'} or $hash->{'clip'}
2388 0 0 0 $self->[0]{'clip'} or $hash->{'clip'}
2456 0 0 0 $self->[0]{'clip'} or $hash->{'clip'}
2483 0 0 0 $self->[0]{'clip'} or $hash->{'clip'}
2515 0 0 0 $self->[0]{'clip'} or $hash->{'clip'}
2534 0 0 0 $self->[0]{'clip'} or $hash->{'clip'}