Branch Coverage

blib/lib/Games/Dice/Advanced.pm
Criterion Covered Total %
branch 25 34 73.5


line true false branch
62 130128 15 if (ref $self and $self->isa('Games::Dice::Advanced')) { }
15 0 elsif ($self eq 'Games::Dice::Advanced') { }
64 0 130128 if @args
68 0 15 unless @args
70 10 15 ref $_ && $_->isa('Games::Dice::Advanced') ? :
132 0 25 unless @args
137 22 3 if (@args == 1)
139 25 0 if (@args == 2) { }
141 0 25 if ref $mul or $mul =~ /\D/
142 0 25 if ref $mul or $mul =~ /\D/
144 17 8 if (not $recipe =~ /\D/) { }
2 6 elsif ($recipe =~ /^d(\d+)$/) { }
1 5 elsif ($recipe =~ /^(\d+)d(\d+)/) { }
5 0 elsif (ref $recipe eq 'CODE') { }
154 0 100000 if $mul != 1 and _die_if_not_number($random)
160 100 10002 if $mul != 1 and _die_if_not_number($random)
178 1 100 unless $_[0] =~ /^-?\d+(\.\d+)?(e\d+)?$/i