Branch Coverage

lib/Catan/Game/Bank.pm
Criterion Covered Total %
branch 8 18 44.4


line true false branch
52 0 9 unless @{$self->deck;}
55 8 1 if ($type)
62 164 8 if ($_ ne $type or $has_found) { }
71 8 0 if $has_found
93 0 168 unless $resources and ref $resources eq 'HASH'
103 0 284 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