Branch Coverage

blib/lib/Acme/Dice.pm
Criterion Covered Total %
branch 41 48 85.4


line true false branch
28 0 4326 @_ == 1 ? :
31 674 3652 delete $$raw_args{'skip_validate'} ? :
40 0 9305 if $$args{'favor'} and $$args{'bias'}
45 680 3613 wantarray ? :
49 0 368 @_ == 1 ? :
51 1 367 if exists $$raw_args{'bias'} and not defined $$raw_args{'bias'}
56 2 365 if $bias < 0 or $bias > 100
58 4 361 if keys %{$raw_args;}
61 0 24 wantarray ? :
24 337 if rand 100 < 5
85 1 336 wantarray ? :
89 3652 0 @_ == 1 ? :
97 7341 7267 unless exists $$raw_args{$_}
98 4 14604 unless defined $$raw_args{$_}
101 12 14596 if defined $$args{$_} and not $$args{$_} =~ /^\d+$/
106 1 3651 if keys %{$raw_args;}
108 17 3635 if @errors
111 1 3634 if $$args{'dice'} < 1
113 1 3634 if $$args{'dice'} > 100
115 1 3634 if $$args{'sides'} < 1
118 12 3623 if $$args{'favor'} < 0 or $$args{'favor'} > $$args{'sides'}
120 1 3634 if $$args{'bias'} < 0 or $$args{'bias'} > 100
123 16 3619 if @errors
133 0 0 if ${$roll_src;} != $$args{'favor'} and rand 100 < $$args{'bias'}