Branch Coverage

lib/Catan/Game/Player.pm
Criterion Covered Total %
branch 0 70 0.0


line true false branch
44 0 0 if $self->{'resources'}{$_} > 0
94 0 0 unless @{$self->roads;} < 15
96 0 0 unless $self->has_connecting_property($location) or $self->has_connecting_road($location)
101 0 0 if @{$self->settlements;} == 2 and not $location->is_adjacent($self->settlements->[1]->location) and @{$self->roads;} == 1
103 0 0 unless $free
127 0 0 unless @{$self->settlements;} < 5
129 0 0 unless $free or $self->has_connecting_road($location)
132 0 0 unless $free
145 0 0 unless @{$self->cities;} < 4
151 0 0 if ($_->location->is_colliding($intersection)) { }
161 0 0 if ($city)
176 0 0 if $type eq 'VP'
185 0 0 unless $type
187 0 0 if $self->has_played_dc
190 0 0 if $type eq 'VP'
197 0 0 if ($_->type eq $type and not $card) { }
206 0 0 unless $card
232 0 0 $self->{'longest_road'} ? :
0 0 $self->{'largest_army'} ? :
238 0 0 $self->{'largest_army'} ? :
244 0 0 $self->{'longest_road'} ? :
264 0 0 if grep $prop->location->is_colliding($_->location), @{$self->properties;}
288 0 0 unless $paths and ref $paths eq 'ARRAY' and @$paths and $intersections and ref $intersections eq 'HASH' and keys %$intersections
301 0 0 if scalar grep($connecting_road->location->is_colliding($_->{'road'}->location), @$path)
305 0 0 if ($connecting_road->location->start eq $uuid) { }
0 0 elsif ($connecting_road->location->end eq $uuid) { }
314 0 0 if ($next_uuid)
323 0 0 if (@new_paths)
339 0 0 if ($_->code eq 'HR') { }
0 0 elsif ($_->code eq 'HRB') { }
0 0 elsif ($_->code eq 'HRG') { }
0 0 elsif ($_->code eq 'HRL') { }
0 0 elsif ($_->code eq 'HRO') { }
0 0 elsif ($_->code eq 'HRW') { }
343 0 0 if $v == 4