Branch Coverage

blib/lib/Algorithm/RandomMatrixGeneration.pm
Criterion Covered Total %
branch 51 60 85.0


line true false branch
34 0 4 unless ($n)
40 0 4 unless ($m)
46 0 4 unless ($precision)
52 4 0 if (defined $seed)
70 2 14 if ($tmp_rmar[$i] =~ /\.0*[1-9]+/)
73 0 2 if ($signValues eq 'negative')
78 3 13 if ($tmp_rmar[$i] =~ /^-/)
81 1 2 if ($format eq 'real')
88 3 1 if ($format eq 'integer' or $signValues eq 'positive')
93 2 10 if ($tmp_cmar[$j] =~ /\.0*[1-9]+/)
96 0 2 if ($signValues eq 'negative')
101 2 10 if ($tmp_cmar[$j] =~ /^-/)
104 0 2 if ($format eq 'real')
116 2 2 if ($format eq 'real')
118 0 2 unless ($precision =~ /^[0-9]+$/)
153 59 81 if ($tmp_cmar[$j] < $max)
161 133 7 if ($max != 0) { }
173 43 90 if ($signValues eq 'positive')
175 19 24 if ($min < 0)
186 104 36 if ($format eq 'real')
192 92 48 if ($signValues eq 'negative')
194 88 4 if ($min > $max)
203 116 24 if ($min != $max) { }
206 94 22 if ($format eq 'real') { }
230 92 48 if ($signValues eq 'negative')
233 13 79 if ($j == $m)
239 12 80 if ($i == $n)
245 104 36 if ($format eq 'real') { }
249 104 0 unless ($val =~ /^0\.?0*$/)
261 26 10 if ($rand_num)