line |
true |
false |
branch |
12
|
0 |
5 |
unless $bank and $bank->isa('Catan::Game::Bank') and $details and ref $details eq 'HASH' and keys %$details and $players and ref $players eq 'ARRAY' and scalar @$players |
24
|
0 |
10 |
unless scalar @players == 1 |
35
|
1 |
4 |
if (@players == 1) { } |
46
|
1 |
2 |
if ($r->amount < 0) { } |
|
2 |
0 |
elsif ($r->amount > 0) { } |
56
|
0 |
1 |
unless $resource_production or $allowed == $requested |
62
|
1 |
3 |
unless @players == 2 |
68
|
7 |
12 |
$_->isa(ref $r) ? : |
69
|
1 |
6 |
unless $r->amount + $total2 == 0 |
75
|
3 |
0 |
if $self->can_afford |
102
|
0 |
19 |
unless $player_number and exists $self->{$player_number} |
110
|
0 |
0 |
if ($self->can_afford) |
135
|
0 |
16 |
unless $player->resources->{$_->code} + $_->quantity >= 0 |