Condition Coverage

lib/Settlers/Game/Player.pm
Criterion Covered Total %
condition 20 35 57.1


and 3 conditions

line !l l&&!r l&&r condition
103 10 6 14 @{$self->settlements;} == 2 and not $location->is_adjacent($self->settlements->[1]->location)
16 14 0 @{$self->settlements;} == 2 and not $location->is_adjacent($self->settlements->[1]->location) and @{$self->roads;} == 1
199 15 12 7 $_->type eq $type and not $card
295 0 0 3624 $paths and ref $paths eq 'ARRAY'
0 0 3624 $paths and ref $paths eq 'ARRAY' and @$paths
0 0 3624 $paths and ref $paths eq 'ARRAY' and @$paths and $intersections
0 0 3624 $paths and ref $paths eq 'ARRAY' and @$paths and $intersections and ref $intersections eq 'HASH'
0 0 3624 $paths and ref $paths eq 'ARRAY' and @$paths and $intersections and ref $intersections eq 'HASH' and keys %$intersections

or 2 conditions

line l !l condition
209 7 1 $card or scalar grep(($type eq $_->type), @{$$self{'cards_bought'};})

or 3 conditions

line l !l&&r !l&&!r condition
97 17 13 0 $self->has_connecting_property($location) or $self->has_connecting_road($location)
131 8 5 0 $free or $self->has_connecting_road($location)
382 56 0 0 $result || &Games::Dice::roll('2d6')