Branch Coverage

blib/lib/Games/Dice/Probability.pm
Criterion Covered Total %
branch 42 70 60.0


line true false branch
35 0 29 if (eval ' require Debug::ShowStuff ') { }
44 29 0 if (eval ' require Memoize ') { }
90 29 0 unless (grep /(un|no)memo(ize)*/i, @_)
115 0 0 if (ref $$self{$key}) { }
136 0 29 unless @_
138 0 29 if (@_ != 1) { }
153 16 45 if (ref $node)
155 7 9 if /(\+)/
156 3 6 if /(\-)/
157 4 2 if /(\*)/
158 2 0 if m[(/)]
163 37 8 if /^(\d+)(d)(\d+|f)/i
164 6 2 if /^(mi)(d)(\d+|f)/i
165 2 0 if /^\d+$/
304 28 275 unless defined $targetvalue
306 303 0 if (ref $self) { }
307 0 303 if (@_ != 0) { }
310 28 275 if ($targetvalue eq 'ALL') { }
311 0 28 if ($$self{'COMBINATIONS'}) { }
333 0 0 if (ref $self) { }
334 0 0 if (@_ != 0) { }
340 0 0 if (@_ != 0) { }
356 0 12201 unless defined $targetvalue
358 12201 0 if (ref $self) { }
359 0 12201 if (@_ != 0) { }
362 28 12173 unless (exists $$self{'PROBABILITIES'})
370 0 12201 if ($targetvalue eq 'ALL') { }
386 56 0 if (ref $self) { }
387 0 56 if (@_ != 0) { }
402 84 0 if (ref $self) { }
403 0 84 if (@_ != 0) { }
406 56 28 if ($$self{'MAX'}) { }
424 84 0 if (ref $self) { }
425 0 84 if (@_ != 0) { }
428 52 32 if ($$self{'MIN'}) { }