Condition Coverage

lib/Catan/Game/Trade.pm
Criterion Covered Total %
condition 10 26 38.4


and 2 conditions

line l !l condition
12 0 144 $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

and 3 conditions

line !l l&&!r l&&r condition
12 0 0 144 $bank and $bank->isa('Catan::Game::Bank')
0 0 144 $bank and $bank->isa('Catan::Game::Bank') and $details
0 0 144 $bank and $bank->isa('Catan::Game::Bank') and $details and ref $details eq 'HASH'
0 0 144 $bank and $bank->isa('Catan::Game::Bank') and $details and ref $details eq 'HASH' and keys %$details
0 0 144 $bank and $bank->isa('Catan::Game::Bank') and $details and ref $details eq 'HASH' and keys %$details and $players
0 0 144 $bank and $bank->isa('Catan::Game::Bank') and $details and ref $details eq 'HASH' and keys %$details and $players and ref $players eq 'ARRAY'
102 0 472 0 $player_number and exists $self->{$player_number}

or 3 conditions

line l !l&&r !l&&!r condition
56 115 6 0 $resource_production or $allowed == $requested