Condition Coverage

lib/Catan/Map.pm
Criterion Covered Total %
condition 8 60 13.3


and 3 conditions

line !l l&&!r l&&r condition
72 0 0 0 $coordinates and ref $coordinates eq 'ARRAY'
0 0 0 $coordinates and ref $coordinates eq 'ARRAY' and @$coordinates == 2
83 0 0 0 $type_code and $type_code =~ qr/^[A-Z]$/
98 0 0 0 defined $number and $number =~ qr/^[0-9]+$/
113 0 0 0 $intersection and ref $intersection eq 'Catan::Map::Intersection'
127 0 0 0 $coordinates and ref $coordinates eq 'ARRAY'
0 0 0 $coordinates and ref $coordinates eq 'ARRAY' and @$coordinates == 3
142 0 0 0 $coordinates and ref $coordinates eq 'ARRAY'
0 0 0 $coordinates and ref $coordinates eq 'ARRAY' and @$coordinates == 2
160 0 0 4 $map_plan and ref $map_plan eq 'ARRAY'
185 0 0 4 $map and ref $map eq 'HASH'
0 4 0 $map and ref $map eq 'HASH' and keys %$map == 37
204 0 0 0 $tile2 and $tile3
217 0 0 0 $intersections and ref $intersections eq 'HASH'
0 0 0 $intersections and ref $intersections eq 'HASH' and keys %$intersections == 54
307 442 97 30 $neighbor->{'q'} == $_->[0] && $neighbor->{'r'} == $_->[1]

or 2 conditions

line l !l condition
76 0 0 $self->{'tiles'}{$uuid} || die("Tile $uuid not found!")
136 0 0 $self->{'intersections'}{$uuid} || die("Intersection $uuid not found!")
151 0 0 $self->{'paths'}{$uuid} || die("Path $uuid not found!")

or 3 conditions

line l !l&&r !l&&!r condition
167 76 72 0 not defined $resource_number or grep(($resource_number == $_), @resource_numbers)
231 0 0 0 $i1 eq $i2 or not $i1->is_adjacent($i2)