Branch Coverage

blib/lib/Math/DyckWords.pm
Criterion Covered Total %
branch 31 34 91.1


line true false branch
115 1 194 unless (defined $X)
121 41 22 if ($n0 < $n and $n1 < $n and $n0 > $n1)
127 22 173 if ($n0 < $n and $n1 < $n and $n0 == $n1 or $n0 < $n and $n1 == $n)
134 90 105 if ($n0 == $n and $n1 < $n)
139 42 153 if ($n0 == $n and $n1 == $n)
181 41 48 if ($b[$i - 1] < $n + $i)
185 26 18 $b[$j - 2] + 1 > $j * 2 ? :
218 215 215 exists $position{$i + 1} ? :
238 1 41 unless (defined $X)
248 41 42 if ($j > 0) { }
281 58 83 if ($n >= $i and $i >= 0 and $j == 0)
284 47 36 if ($n >= $i and $i > $j and $j >= 1)
288 36 0 if ($n >= $i and $i >= 1 and $j == $i)
291 0 0 if ($n >= $j and $j > $i and $i >= 0)
312 5 5 if ($p == 1)
337 1 3 $b[$j - 2] + 1 > $j * 2 ? :
369 1 4 $b[$i - 1] + 1 > $i * 2 ? :