blib/lib/Acme/Dice.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 17 | 23 | 73.9 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
40 | 8631 | 674 | 0 | $$args{'favor'} and $$args{'bias'} |
51 | 365 | 2 | 1 | exists $$raw_args{'bias'} and not defined $$raw_args{'bias'} |
101 | 4 | 14592 | 12 | defined $$args{$_} and not $$args{$_} =~ /^\d+$/ |
133 | 0 | 0 | 0 | ${$roll_src;} != $$args{'favor'} and rand 100 < $$args{'bias'} |
line | l | !l | condition |
---|---|---|---|
54 | 2 | 365 | delete $$raw_args{'bias'} || 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
56 | 1 | 1 | 365 | $bias < 0 or $bias > 100 |
118 | 0 | 12 | 3623 | $$args{'favor'} < 0 or $$args{'favor'} > $$args{'sides'} |
120 | 0 | 1 | 3634 | $$args{'bias'} < 0 or $$args{'bias'} > 100 |