Branch Coverage

blib/lib/Math/Vector/Real.pm
Criterion Covered Total %
branch 19 164 11.5


line true false branch
66 0 0 unless $dim >= 0
82 0 0 if (ref $_[0]) { }
89 0 0 unless $dim >= 0
91 0 0 unless $ix >= 0 and $ix < $dim
102 0 0 defined $op ? :
107 78 0 if eval { do { @{$_[0];} == @{$_[1];} } }
109 0 0 $_[2] ? :
110 0 0 unless UNIVERSAL::isa($_[1], 'ARRAY')
139 4 12 $_[2] ? :
151 17 29 if (ref $_[1]) { }
165 0 0 if ref $_[1]
172 0 6 if $_[2] or ref $_[1]
175 0 6 if $div == 0
181 0 1 if ref $_[1]
204 4 11 $_[2] ? :
206 15 0 if ($dim == 3)
211 0 0 if ($dim == 7) { }
259 0 0 if $abs > $max
269 0 0 if $abs < $min
294 0 0 if $d > $max
303 0 0 unless defined $d
304 0 0 if (defined $dim) { }
305 0 0 unless $d == $dim
310 0 0 UNIVERSAL::isa($_, 'Math::Vector::Real') ? :
316 0 1 if (@$v0 == 2) { }
323 0 1 unless $a0
334 0 8 if $f == 0
354 0 0 unless ref $_[0]
356 0 0 if (@_)
365 0 0 unless @_
372 0 0 if ($max->[$ix] < $c) { }
0 0 elsif ($min->[$ix] > $c) { }
380 0 0 wantarray ? :
387 0 0 if ($p->[$_] < $min->[$_]) { }
0 0 elsif ($p->[$_] > $max->[$_]) { }
398 0 0 unless @_ > 1
403 0 0 if ($p->[$_] < $min->[$_]) { }
0 0 elsif ($p->[$_] > $max->[$_]) { }
416 0 0 unless @_ > 1
421 0 0 if ($p->[$_] < $min->[$_]) { }
0 0 elsif ($p->[$_] > $max->[$_]) { }
423 0 0 if $delta > $d
427 0 0 if $delta > $d
434 0 0 unless @_ > 2
444 0 0 if $b_min > $a_max or $b_max < $a_min
445 0 0 if $b_min < $a_min
446 0 0 if $b_min > $a_max
457 0 0 if ($p->[$_] < $b0->[$_]) { }
0 0 elsif ($p->[$_] > $b1->[$_]) { }
467 0 0 if ($in == @$p)
474 0 0 if ($min_d > $d)
487 0 0 unless @_ > 1
494 0 0 $d0 >= $d1 ? :
506 0 0 if ($e0 >= 0) { }
511 0 0 if ($e1 > 0)
531 0 0 $e0 > $e1 ? :
538 0 0 unless @$self
543 0 0 if ($c > $max)
553 0 0 unless @$self
558 0 0 if ($c < $min)
570 0 4 wantarray ? :
582 0 4 unless @$v == 3
586 4 3 if (CORE::abs $v->[$_] > 0.57)
602 0 3 if (wantarray) { }
615 0 0 unless @_
617 0 0 if ($dim == 2 and @_ == 1)
632 0 0 if $last < 0
635 0 0 if ($max < 0.3)
638 0 0 if ($d2 > $max)
640 0 0 unless $d2 < 0.3
648 0 0 wantarray ? :
665 0 0 if $v->dist2($p->[$ix]) <= $r2
675 0 0 if $ap_ab <= 0
677 0 0 if $x >= 1
690 0 0 if (@$a > 2)
695 0 0 if (CORE::abs 1 - $ab_cd * $ab_cd / ($ab_ab * $cd_cd) > 1e-10)
703 0 0 if $x < 0
704 0 0 if $x > 1
708 0 0 if $y < 0
709 0 0 if $y > 1
724 0 0 if $d2 < $min_d2
726 0 0 if $d2 < $min_d2