Condition Coverage

lib/Catan/Game/Bank.pm
Criterion Covered Total %
condition 7 35 20.0


and 3 conditions

line !l l&&!r l&&r condition
93 0 0 10 $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'

or 2 conditions

line l !l condition
80 0 3 $args->{'resource_count'} || 19

or 3 conditions

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 0 0 0 $_ ne $type or $has_found