Condition Coverage

lib/Catan/Map.pm
Criterion Covered Total %
condition 28 60 46.6


and 3 conditions

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

or 2 conditions

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

or 3 conditions

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