Condition Coverage

lib/Catan/Game/Player.pm
Criterion Covered Total %
condition 0 33 0.0


and 3 conditions

line !l l&&!r l&&r condition
101 0 0 0 @{$self->settlements;} == 2 and not $location->is_adjacent($self->settlements->[1]->location)
0 0 0 @{$self->settlements;} == 2 and not $location->is_adjacent($self->settlements->[1]->location) and @{$self->roads;} == 1
197 0 0 0 $_->type eq $type and not $card
288 0 0 0 $paths and ref $paths eq 'ARRAY'
0 0 0 $paths and ref $paths eq 'ARRAY' and @$paths
0 0 0 $paths and ref $paths eq 'ARRAY' and @$paths and $intersections
0 0 0 $paths and ref $paths eq 'ARRAY' and @$paths and $intersections and ref $intersections eq 'HASH'
0 0 0 $paths and ref $paths eq 'ARRAY' and @$paths and $intersections and ref $intersections eq 'HASH' and keys %$intersections

or 3 conditions

line l !l&&r !l&&!r condition
96 0 0 0 $self->has_connecting_property($location) or $self->has_connecting_road($location)
129 0 0 0 $free or $self->has_connecting_road($location)
374 0 0 0 $result || &Games::Dice::roll('2d6')