Condition Coverage

lib/Catan/Game/Player.pm
Criterion Covered Total %
condition 18 33 54.5


and 3 conditions

line !l l&&!r l&&r condition
101 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
197 2 1 7 $_->type eq $type and not $card
288 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 3 conditions

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