Branch Coverage

lib/Settlers/Map/Path.pm
Criterion Covered Total %
branch 8 14 57.1


line true false branch
13 0 949 unless $intersections and ref $intersections eq 'ARRAY' and @$intersections == 2
16 0 949 unless $intersections->[0]->is_adjacent($intersections->[1])
34 0 419 unless $obj and $obj->isa('Settlers::Map::Intersection') || $obj->isa('Settlers::Map::Path')
39 363 56 if ($obj->isa('Settlers::Map::Intersection')) { }
56 0 elsif ($obj->isa('Settlers::Map::Path')) { }
45 0 56 if $self->is_colliding($obj)
55 0 25579 unless $obj and $obj->isa('Settlers::Map::Path')