Branch Coverage

blib/lib/ICC/Profile/matf.pm
Criterion Covered Total %
branch 9 198 4.5


line true false branch
45 0 5 if (@_)
48 0 0 if (@_ == 1 and ref $_[0] eq 'HASH') { }
0 0 elsif (@_ == 2 or @_ == 3) { }
57 0 0 if $info = fit($self, @_)
100 0 0 unless (defined $pcs)
165 0 0 unless (defined $pcs)
227 0 0 unless (defined $pcs)
263 0 0 if (defined $self->[1][0][0])
266 0 0 unless @{$self->[1];} == @{$self->[1][0];}
272 0 0 if (defined $self->[2][0])
306 0 0 if (@_)
309 0 0 if (@_ == 1 and ref $_[0] eq 'HASH') { }
337 0 2 if (@_)
340 0 0 if (@_ == 1 and ref $_[0] eq 'ARRAY' and @{$_[0];} == grep({ref $_ eq 'ARRAY';} @{$_[0];})) { }
0 0 elsif (@_ == 1 and UNIVERSAL::isa($_[0], 'Math::Matrix')) { }
374 0 4 if (@_)
377 0 0 if (@_ == 1 and ref $_[0] eq 'ARRAY' and @{$_[0];} == grep({not ref $_;} @{$_[0];})) { }
407 0 0 if (defined $pri) { }
410 0 0 if (UNIVERSAL::isa($pri, 'Math::Matrix') || ref $pri eq 'ARRAY' and @{$pri;} == 3 and @{$pri->[0];} == 3) { }
425 0 0 if (defined $self->[1]) { }
462 0 0 unless $lapack
465 0 0 unless defined $oflag
468 0 0 unless ref $in eq 'ARRAY' and ref $in->[0] eq 'ARRAY' and not ref $in->[0][0] or UNIVERSAL::isa($in, 'Math::Matrix')
471 0 0 unless ref $out eq 'ARRAY' and ref $out->[0] eq 'ARRAY' and not ref $out->[0][0] or UNIVERSAL::isa($out, 'Math::Matrix')
474 0 0 unless $#{$in;} == $#{$out;}
480 0 0 if $info < 0
481 0 0 if $info > 0
500 0 0 if ($oflag) { }
528 0 0 ref $_[-1] eq 'HASH' ? :
531 0 0 if (@_ == $h + 2 and UNIVERSAL::isa($_[1], 'Math::Matrix')) { }
0 0 elsif (@_ == $h + 2 and ref $_[1] eq 'ARRAY') { }
0 0 elsif (@_ == $h + 1 + grep({&Scalar::Util::looks_like_number($_);} @_)) { }
540 0 0 if (not ref $_[1][0] and @{$_[1];} == grep({&Scalar::Util::looks_like_number($_);} @{$_[1];})) { }
0 0 elsif (ref $_[1][0] eq 'ARRAY' and @{$_[1];} == grep({&Scalar::Util::looks_like_number($_->[0]) if ref $_ eq 'ARRAY';} @{$_[1];})) { }
546 0 0 if ref $_ eq 'ARRAY'
593 0 0 if defined $_
0 0 if not defined $_
0 0 unless grep({++$i; push @si, $i if defined $_;} @{$in;}) == grep({++$j; push @so, $j if not defined $_;} @{$out;})
604 0 0 if ($lapack) { }
629 0 0 if $info
694 0 0 if (wantarray) { }
720 0 0 ref $_[-1] eq 'HASH' ? :
723 0 0 if (@_ == $h + 2 and UNIVERSAL::isa($_[1], 'Math::Matrix')) { }
0 0 elsif (@_ == $h + 2 and ref $_[1] eq 'ARRAY') { }
0 0 elsif (@_ == $h + 1 + grep({&Scalar::Util::looks_like_number($_);} @_)) { }
732 0 0 if (not ref $_[1][0] and @{$_[1];} == grep({&Scalar::Util::looks_like_number($_);} @{$_[1];})) { }
0 0 elsif (ref $_[1][0] eq 'ARRAY' and @{$_[1];} == grep({&Scalar::Util::looks_like_number($_->[0]) if ref $_ eq 'ARRAY';} @{$_[1];})) { }
738 0 0 if ref $_ eq 'ARRAY'
781 0 0 unless @_ == 3
799 0 0 unless @_ == 4
861 0 0 ref $p eq 'ARRAY' ? :
0 0 defined $p ? :
864 0 0 defined $p->[0] && !ref($p->[0]) ? :
876 0 0 if ($rows < 0 and $off < 0) { }
884 0 0 if ($rows >= 0)
903 0 0 if ($off >= 0)
932 0 0 if (@{$in;} == grep({&Scalar::Util::looks_like_number($_);} @{$in;})) { }
943 0 0 if (ref $in->[$i] eq 'ARRAY') { }
973 0 0 if ref $_[-1] eq 'HASH'
976 0 0 unless @_ == @{$self->[1][0];}
979 0 0 defined $self->[2][0] ? :
1006 0 0 unless @{$in;} == @{$self->[1][0];}
1009 0 0 if ($lapack) { }
1038 0 0 unless @{$in->[0];} == @{$self->[1][0];}
1041 0 0 if ($lapack) { }
1049 0 0 defined $self->[2][0] ? :
1070 0 0 UNIVERSAL::isa($in, 'Math::Matrix') ? :
1102 0 0 if ref $_[-1] eq 'HASH'
1105 0 0 unless @_ == @{$self->[1][0];}
1121 0 0 unless @{$in;} == @{$self->[1];}
1130 0 0 defined $self->[2][$i] ? :
1154 0 0 unless @{$in->[0];} == @{$self->[1];}
1157 0 0 if ($lapack) { }
1163 0 0 if $info
1166 0 0 UNIVERSAL::isa($in, 'Math::Matrix') ? :
1180 0 0 defined $self->[2][$i] ? :
1190 0 0 UNIVERSAL::isa($in, 'Math::Matrix') ? :
1225 0 0 if (defined $hash->{'header'})
1228 0 0 if (ref $hash->{'header'} eq 'HASH') { }
1243 0 0 if (defined $hash->{'matrix'})
1249 0 0 if (ref $value eq 'ARRAY' and @{$value;} == grep({ref $_ eq 'ARRAY';} @{$value;})) { }
0 0 elsif (UNIVERSAL::isa($value, 'Math::Matrix')) { }
0 0 elsif (&Scalar::Util::looks_like_number($value) and $value == int $value and $value > 0) { }
1276 0 0 if (defined $hash->{'offset'})
1282 0 0 if (ref $value eq 'ARRAY' and @{$value;} == grep({not ref $_;} @{$value;})) { }
0 0 elsif (&Scalar::Util::looks_like_number($value)) { }
1291 0 0 if (defined $self->[1]) { }
1329 4 0 if ($format == 2) { }
0 0 elsif ($format == 4) { }
1343 2 2 if ($oflag)
1368 0 0 if ($oflag)
1439 2 0 if ($format == 2) { }
0 0 elsif ($format == 4) { }
1450 2 0 if ($oflag)
1453 2 0 defined $self->[2] && @{$self->[2];} > 0 ? :
1469 0 0 if ($oflag)
1472 0 0 defined $self->[2] && @{$self->[2];} > 0 ? :
1502 0 0 unless $ci > 0 and $ci < 16
1505 0 0 unless $co > 0 and $co < 16