lib/Catan/Game/Bank.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 10 | 35 | 28.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
93 | 0 | 0 | 168 | $resources and ref $resources eq 'HASH' |
113 | 0 | 0 | 0 | $code and exists $resource_table{uc $code} |
121 | 0 | 0 | 0 | $player and $player->isa('Catan::Game::Player') |
0 | 0 | 0 | $player and $player->isa('Catan::Game::Player') and $details | |
0 | 0 | 0 | $player and $player->isa('Catan::Game::Player') and $details and ref $details eq 'HASH' |
line | l | !l | condition |
---|---|---|---|
80 | 0 | 3 | $args->{'resource_count'} || 19 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
40 | 0 | 3 | 0 | $args->{'knight_count'} || ('KN') x 14 |
41 | 0 | 3 | 0 | $args->{'vp_count'} || ('VP') x 5 |
42 | 0 | 3 | 0 | $args->{'monopoly_count'} || ('MO') x 2 |
43 | 0 | 3 | 0 | $args->{'road_building_count'} || ('RB') x 2 |
44 | 0 | 3 | 0 | $args->{'year_of_plenty_count'} || ('YP') x 2 |
62 | 121 | 43 | 8 | $_ ne $type or $has_found |