Condition Coverage

lib/Catan/Game/Trade.pm
Criterion Covered Total %
condition 9 26 34.6


and 2 conditions

line l !l condition
12 0 5 $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 5 $bank and $bank->isa('Catan::Game::Bank')
0 0 5 $bank and $bank->isa('Catan::Game::Bank') and $details
0 0 5 $bank and $bank->isa('Catan::Game::Bank') and $details and ref $details eq 'HASH'
0 0 5 $bank and $bank->isa('Catan::Game::Bank') and $details and ref $details eq 'HASH' and keys %$details
0 0 5 $bank and $bank->isa('Catan::Game::Bank') and $details and ref $details eq 'HASH' and keys %$details and $players
0 0 5 $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 19 0 $player_number and exists $self->{$player_number}

or 3 conditions

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