Branch Coverage

blib/lib/Math/MatrixBool.pm
Criterion Covered Total %
branch 41 198 20.7


line true false branch
57 0 75 if @_ != 3
67 0 75 if $rows <= 0
70 0 75 if $cols <= 0
74 75 0 if (defined $matrix and ref $matrix and ${$matrix;} != 0) { }
89 0 10 if @_ != 2
112 10 36 if ($col != $cols)
114 0 10 unless ($cols == 0)
115 10 0 if ($col > $cols)
119 0 10 unless ($string =~ /^\s*$/)
123 0 10 if ($rows == 0)
127 0 10 if ($warn)
136 118 123 if ($$values[$row][$col] != 0)
147 0 0 if @_ != 1
157 0 0 if @_ != 1
167 0 1 if @_ != 1
177 0 0 if @_ != 1
187 0 0 if @_ != 1
197 0 6 if @_ != 1
205 6 0 $rows <= $cols ? :
214 0 1 if @_ != 3
220 0 1 if $row < 1 or $row > $rows
222 0 1 if $col < 1 or $col > $cols
235 0 0 if @_ != 3
241 0 0 if $row < 1 or $row > $rows
243 0 0 if $col < 1 or $col > $cols
256 0 0 if @_ != 3
262 0 0 if $row < 1 or $row > $rows
264 0 0 if $col < 1 or $col > $cols
277 0 0 if @_ != 3
283 0 0 if $row < 1 or $row > $rows
285 0 0 if $col < 1 or $col > $cols
303 0 0 if @_ != 1
313 0 0 if @_ != 1
329 0 0 if ($sum > $max)
336 0 0 if @_ != 1
352 0 0 if ($sum > $max)
359 0 0 if @_ != 3
367 0 0 if ($rows1 == $rows2 and $rows1 == $rows3 and $cols1 == $cols2 and $cols1 == $cols3) { }
380 0 18 if @_ != 2
388 18 0 if ($cols1 == $rows2) { }
404 0 12 if @_ != 2
412 12 0 if ($cols1 == $rows2) { }
428 0 2 if @_ != 1
435 0 2 if $rows != $cols
447 0 16 if @_ != 3
455 16 0 if ($rows1 == $rows2 and $rows1 == $rows3 and $cols1 == $cols2 and $cols1 == $cols3) { }
468 0 0 if @_ != 3
476 0 0 if ($rows1 == $rows2 and $rows1 == $rows3 and $cols1 == $cols2 and $cols1 == $cols3) { }
489 0 0 if @_ != 3
497 0 0 if ($rows1 == $rows2 and $rows1 == $rows3 and $cols1 == $cols2 and $cols1 == $cols3) { }
510 0 0 if @_ != 3
518 0 0 if ($rows1 == $rows2 and $rows1 == $rows3 and $cols1 == $cols2 and $cols1 == $cols3) { }
531 0 0 if @_ != 2
538 0 0 if ($rows1 == $rows2 and $cols1 == $cols2) { }
550 0 25 if @_ != 2
557 24 1 if ($rows1 == $cols2 and $cols1 == $rows2) { }
569 0 60 if @_ != 2
576 60 0 if ($rows1 == $rows2 and $cols1 == $cols2) { }
588 0 0 if @_ != 2
595 0 0 if ($rows1 == $rows2 and $cols1 == $cols2) { }
612 0 0 if @_ != 2
619 0 0 if ($rows1 == $rows2 and $cols1 == $cols2) { }
631 0 0 if @_ != 2
638 0 0 if ($rows1 == $rows2 and $cols1 == $cols2) { }
650 0 8 if @_ != 2
657 8 0 if ($rows1 == $rows2 and $cols1 == $cols2) { }
669 0 18 if @_ != 1
681 0 4 if @_ != 1
749 0 0 if ($object->bit_test($i, $j)) { }
770 0 0 if (defined $argument and ref $argument and not ref($argument) =~ /^[A-Z]+$/) { }
772 0 0 if (defined $flag) { }
796 10 0 if (defined $argument and ref $argument and not ref($argument) =~ /^[A-Z]+$/) { }
798 0 10 if (defined $flag and $flag) { }
819 7 0 if (defined $argument and ref $argument and not ref($argument) =~ /^[A-Z]+$/) { }
821 0 7 if (defined $flag) { }
845 0 0 if (defined $argument and ref $argument and not ref($argument) =~ /^[A-Z]+$/) { }
847 0 0 if (defined $flag) { }
850 0 0 if ($flag) { }
872 0 0 if (defined $argument and ref $argument and not ref($argument) =~ /^[A-Z]+$/) { }
874 0 0 if (defined $flag) { }
898 0 0 if (defined $argument and ref $argument and not ref($argument) =~ /^[A-Z]+$/) { }
900 0 0 if (defined $flag) { }
971 0 0 if (defined $argument and ref $argument and not ref($argument) =~ /^[A-Z]+$/) { }
986 0 0 if (defined $argument and ref $argument and not ref($argument) =~ /^[A-Z]+$/) { }
1001 0 0 if (defined $argument and ref $argument and not ref($argument) =~ /^[A-Z]+$/) { }
1003 0 0 if (defined $flag and $flag) { }
1025 0 0 if (defined $argument and ref $argument and not ref($argument) =~ /^[A-Z]+$/) { }
1027 0 0 if (defined $flag and $flag) { }
1047 0 0 if (defined $argument and ref $argument and not ref($argument) =~ /^[A-Z]+$/) { }
1049 0 0 if (defined $flag and $flag) { }
1071 0 0 if (defined $argument and ref $argument and not ref($argument) =~ /^[A-Z]+$/) { }
1073 0 0 if (defined $flag and $flag) { }
1093 0 0 if (defined $argument and ref $argument and not ref($argument) =~ /^[A-Z]+$/) { }
1095 0 0 if (defined $flag and $flag) { }
1125 0 0 unless (defined $object)
1126 0 0 unless (defined $argument)
1127 0 0 unless (defined $flag)
1128 0 0 if (ref $object)
1129 0 0 if (ref $argument)