Condition Coverage

blib/lib/ICC/Profile/matf.pm
Criterion Covered Total %
condition 1 108 0.9


and 3 conditions

line !l l&&!r l&&r condition
48 0 0 0 @_ == 1 and ref $_[0] eq 'HASH'
309 0 0 0 @_ == 1 and ref $_[0] eq 'HASH'
340 0 0 0 @_ == 1 and ref $_[0] eq 'ARRAY'
0 0 0 @_ == 1 and ref $_[0] eq 'ARRAY' and @{$_[0];} == grep({ref $_ eq 'ARRAY';} @{$_[0];})
0 0 0 @_ == 1 and UNIVERSAL::isa($_[0], 'Math::Matrix')
377 0 0 0 @_ == 1 and ref $_[0] eq 'ARRAY'
0 0 0 @_ == 1 and ref $_[0] eq 'ARRAY' and @{$_[0];} == grep({not ref $_;} @{$_[0];})
410 0 0 0 UNIVERSAL::isa($pri, 'Math::Matrix') || ref $pri eq 'ARRAY' and @{$pri;} == 3
0 0 0 UNIVERSAL::isa($pri, 'Math::Matrix') || ref $pri eq 'ARRAY' and @{$pri;} == 3 and @{$pri->[0];} == 3
468 0 0 0 ref $in eq 'ARRAY' and ref $in->[0] eq 'ARRAY'
0 0 0 ref $in eq 'ARRAY' and ref $in->[0] eq 'ARRAY' and not ref $in->[0][0]
471 0 0 0 ref $out eq 'ARRAY' and ref $out->[0] eq 'ARRAY'
0 0 0 ref $out eq 'ARRAY' and ref $out->[0] eq 'ARRAY' and not ref $out->[0][0]
531 0 0 0 @_ == $h + 2 and UNIVERSAL::isa($_[1], 'Math::Matrix')
0 0 0 @_ == $h + 2 and ref $_[1] eq 'ARRAY'
540 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];})
723 0 0 0 @_ == $h + 2 and UNIVERSAL::isa($_[1], 'Math::Matrix')
0 0 0 @_ == $h + 2 and ref $_[1] eq 'ARRAY'
732 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];})
864 0 0 0 defined $p->[0] && !ref($p->[0])
876 0 0 0 $rows < 0 and $off < 0
1249 0 0 0 ref $value eq 'ARRAY' and @{$value;} == grep({ref $_ eq 'ARRAY';} @{$value;})
0 0 0 &Scalar::Util::looks_like_number($value) and $value == int $value
0 0 0 &Scalar::Util::looks_like_number($value) and $value == int $value and $value > 0
1282 0 0 0 ref $value eq 'ARRAY' and @{$value;} == grep({not ref $_;} @{$value;})
1453 0 0 2 defined $self->[2] && @{$self->[2];} > 0
1472 0 0 0 defined $self->[2] && @{$self->[2];} > 0
1502 0 0 0 $ci > 0 and $ci < 16
1505 0 0 0 $co > 0 and $co < 16

or 3 conditions

line l !l&&r !l&&!r condition
48 0 0 0 @_ == 2 or @_ == 3
410 0 0 0 UNIVERSAL::isa($pri, 'Math::Matrix') || ref $pri eq 'ARRAY'
468 0 0 0 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 0 ref $out eq 'ARRAY' and ref $out->[0] eq 'ARRAY' and not ref $out->[0][0] or UNIVERSAL::isa($out, 'Math::Matrix')
667 0 0 0 $mat->solve || print("matf inverse error: @{$in;}\n")