Branch Coverage

blib/lib/Math/Shape/Circle.pm
Criterion Covered Total %
branch 21 24 87.5


line true false branch
14 0 14 unless @_ == 4
26 8 73 if ($other_obj->isa('Math::Shape::Circle')) { }
41 32 elsif ($other_obj->isa('Math::Shape::Vector')) { }
7 25 elsif ($other_obj->isa('Math::Shape::Line')) { }
7 18 elsif ($other_obj->isa('Math::Shape::LineSegment')) { }
12 6 elsif ($other_obj->isa('Math::Shape::Rectangle')) { }
6 0 elsif ($other_obj->isa('Math::Shape::OrientedRectangle')) { }
29 4 4 $center->length <= $$self{'radius'} + $$other_obj{'radius'} ? :
34 18 23 $center->length <= $$self{'radius'} ? :
47 3 4 if $self->collides($$other_obj{'start'})
48 0 4 if $self->collides($$other_obj{'end'})
56 1 3 $self->collides($nearest) && $p->length <= $d->length && 0 <= $p->dot_product($d) ? :