Branch Coverage

blib/lib/Math/Zap/Triangle.pm
Criterion Covered Total %
branch 22 52 42.3


line true false branch
228 0 28 if $n and $A
257 0 0 unless ref $t eq 'Math::Zap::Triangle'
378 0 0 unless scalar @_
432 0 2 if abs $t->ab x $t->ac * ($b - $a) < $accuracy
491 0 3 if abs $t->ab x $t->ac * ($a - $b) < $accuracy
512 0 0 if abs $t->ab x $t->ac * ($a - $b) < $accuracy
552 0 3 if $a->parallel($b)
554 0 3 if $b->distance($A->a) > $b->distance($a->a)
555 0 3 if $b->distance($A->a) > $b->distance($a->a)
566 2 1 if $a->ab->norm * $nb->norm < 0.1
567 3 0 if $a->ac->norm * $nb->norm < 0.1
579 0 3 if ($l->b - $l->a)->length < $accuracy
593 0 3 if $n == 1 || $n == 3 and 0
594 0 3 unless $n == 2
601 1 2 if $i1 and $i2
602 1 2 if $i1 and $i3
603 1 2 if $i2 and $i3
607 2 1 unless ($i1 and $i2)
632 0 0 if $a1 || $b1 || $c1 and $a2 || $b2 || $c2
636 3 0 unless $a1 or $a2 or $b1 or $b2 or $c1 or $c2
642 0 0 if not $a1 || $b1 || $c1 and $a2 || $b2 || $c2
647 0 0 if $a1
651 0 0 if $b1
655 0 0 if $c1
704 0 0 unless $t->ab->length > $s and $t->ac->length > $s and $t->bc->length > $s
746 1 0 if abs(($aa - $ba)->length) < $d and abs(($ab - $bb)->length) < $d and abs(($ac - $bc)->length) < $d or abs(($aa - $ba)->length) < $d and abs(($ab - $bc)->length) < $d and abs(($ac - $bb)->length) < $d or abs(($aa - $bb)->length) < $d and abs(($ab - $bc)->length) < $d and abs(($ac - $ba)->length) < $d or abs(($aa - $bb)->length) < $d and abs(($ab - $ba)->length) < $d and abs(($ac - $bc)->length) < $d or abs(($aa - $bc)->length) < $d and abs(($ab - $ba)->length) < $d and abs(($ac - $bb)->length) < $d or abs(($aa - $bc)->length) < $d and abs(($ab - $bb)->length) < $d and abs(($ac - $ba)->length) < $d