Branch Coverage

lib/Catan/Event/Robber.pm
Criterion Covered Total %
branch 14 34 41.1


line true false branch
26 0 8 if $self->active
32 20 0 unless $_->resource_total > 7
44 0 0 if $pair->{'player'}->resource_total <= $pair->{'target_total'}
54 0 7 unless $self->active
56 0 7 if @{$self->{'players_to_concede'};}
57 0 7 unless $self->moved
67 0 1 unless $tile
76 0 7 unless $tile and $tile->isa('Catan::Map::Tile') and $players and ref $players eq 'ARRAY'
79 0 7 if @{$self->{'players_to_concede'};}
81 0 7 unless $self->{'active'}
83 0 7 if $self->{'moved'}
86 0 7 if $self->{'location'}->uuid eq $tile->uuid
98 7 59 if ($property->location->is_adjacent($tile))
108 0 7 unless @players_to_steal
118 0 0 unless $self->{'active'}
119 0 0 unless $self->{'moved'}
121 0 0 if (grep(($_->number == $player->number), @{$$self{'players_to_steal'};})) { }