Branch Coverage

blib/lib/Math/Shape/LineSegment.pm
Criterion Covered Total %
branch 19 22 86.3


line true false branch
15 0 102 unless @_ == 5
25 0 80 unless $_[1]->isa('Math::Shape::Vector')
42 5 10 if ($other_obj->isa('Math::Shape::LineSegment')) { }
2 8 elsif ($other_obj->isa('Math::Shape::Vector')) { }
2 6 elsif ($other_obj->isa('Math::Shape::Line')) { }
2 4 elsif ($other_obj->isa('Math::Shape::OrientedRectangle')) { }
2 2 elsif ($other_obj->isa('Math::Shape::Rectangle')) { }
2 0 elsif ($other_obj->isa('Math::Shape::Circle')) { }
51 1 4 if $axis_a->on_one_side($other_obj)
60 1 3 if $axis_b->on_one_side($self)
62 2 1 if ($$axis_a{'direction'}->is_parallel($$axis_b{'direction'}))