Branch Coverage

Bio/Matrix/Generic.pm
Criterion Covered Total %
branch 43 90 47.7


line true false branch
113 1 4 if defined $id
114 2 3 if defined $name
115 5 0 if (defined $rownames and defined $colnames) { }
0 0 elsif (not defined $rownames || defined $colnames || defined $values) { }
116 0 5 unless (ref($rownames) =~ /ARRAY/i)
124 0 5 unless (ref($colnames) =~ /ARRAY/i)
133 5 0 if (defined $values) { }
134 0 5 unless (ref($values) =~ /ARRAY/i)
138 0 63 unless (ref($v) =~ /ARRAY/i)
174 1 1 if @_
193 2 1 if @_
214 0 16 unless (defined $row and defined $column)
254 0 169 unless (defined $row and defined $col and $row =~ /^\d+$/ and $col =~ /^\d+$/)
261 15 154 if (defined $newvalue) { }
293 0 1 unless (defined $column)
298 0 1 unless (defined $colnum)
338 0 1 unless (defined $colnum)
346 0 1 if (defined $newcol) { }
347 0 0 unless (ref($newcol) =~ /ARRAY/i)
351 0 0 if (scalar @$newcol != $rowcount)
365 1 0 if (wantarray)
386 0 9 unless (defined $row)
423 0 9 unless (defined $rownum)
429 0 9 if (defined $newrow) { }
430 0 0 unless (ref($newrow) =~ /ARRAY/i)
434 0 0 if (scalar @$newrow != $colcount)
450 9 0 if (wantarray)
500 0 2 if (not defined $index && $index =~ /^\d+$/) { }
0 2 elsif (not defined $name) { }
0 2 elsif (defined $self->row_num_for_name($name)) { }
514 0 2 if ($index > $rowcount)
519 0 2 if (not defined $newrow) { }
0 2 elsif (not ref($newrow) =~ /ARRAY/i) { }
556 0 1 if ($rowindex > $rowcount) { }
590 0 2 if (not defined $index && $index =~ /^\d+$/) { }
0 2 elsif (not defined $name) { }
0 2 elsif (defined $self->column_num_for_name($name)) { }
603 0 2 if ($index > $colcount)
608 0 2 if (not defined $newcol) { }
0 2 elsif (not ref($newcol) =~ /ARRAY/i) { }
644 0 1 if ($colindex > $colcount) { }
756 0 21 unless $self->_values->[0]
772 0 0 if (wantarray) { }
792 0 0 if (wantarray) { }
817 0 217 if ($val)