Branch Coverage

lib/Catan/Game/Bank.pm
Criterion Covered Total %
branch 4 18 22.2


line true false branch
52 0 1 unless @{$self->deck;}
55 0 1 if ($type)
62 0 0 if ($_ ne $type or $has_found) { }
71 0 0 if $has_found
93 0 10 unless $resources and ref $resources eq 'HASH'
103 0 26 unless $class
113 0 0 unless $code and exists $resource_table{uc $code}
121 0 0 unless $player and $player->isa('Catan::Game::Player') and $details and ref $details eq 'HASH'
130 0 0 unless $_->amount < 0