Branch Coverage

blib/lib/Math/MagicSquare/Generator.pm
Criterion Covered Total %
branch 11 18 61.1


line true false branch
19 0 20 unless $opt{'size'} > 0 and $opt{'size'} % 2 and $opt{'size'} == int $opt{'size'}
34 1105 323347 if ++$x > $#$self
35 1105 323347 if --$y > $#$self
67 0 2210 if @$_ > @$self
68 0 2210 if _sum(@$_) != $sum
72 0 2230 if _sum(map($$self[$_][$x], 0 .. $#$self)) != $sum
75 0 20 if _sum(map($$self[$_][$_], 0 .. $#$self)) != $sum
76 0 20 if _sum(map($$self[$#$self - $_][$_], 0 .. $#$self)) != $sum
80 0 20 if _sum(values %seen) != keys %seen