Branch Coverage

blib/lib/Math/SparseMatrix.pm
Criterion Covered Total %
branch 26 50 52.0


line true false branch
45 0 3 unless (defined $rows and defined $cols)
65 0 21 unless (defined $row and defined $col and defined $val)
70 0 21 if ($row < 1 or $row > $$self{'_rows'})
76 0 21 if ($col < 1 or $col > $$self{'_cols'})
82 0 21 if ($val == 0)
87 2 19 if (exists $$self{'_data'}{$row}) { }
103 0 81 unless (defined $row and defined $col)
108 0 81 if ($row < 1 or $row > $$self{'_rows'})
114 0 81 if ($col < 1 or $col > $$self{'_cols'})
120 81 0 if (exists $$self{'_data'}{$row}) { }
132 0 1 unless (defined $infile)
137 0 1 unless (-f $infile)
149 0 1 unless open INPUT, "< $infile"
172 0 5 if ($lineNum > $rows)
189 0 1 if ($nnzFound < $nnz)
195 0 1 if ($nnzFound > $nnz)
210 0 1 unless (defined $infile)
215 0 1 unless (-f $infile)
227 0 1 unless open INPUT, "< $infile"
251 0 5 if ($lineNum > $rows)
269 0 1 if ($nnzFound < $nnz)
275 0 1 if ($nnzFound > $nnz)
291 0 1 unless (defined $outfile)
297 0 1 unless open OUTPUT, "> $outfile"
305 0 5 if ($row > $linecount)