Branch Coverage

blib/lib/Statistics/Basic/LeastSquareFit.pm
Criterion Covered Total %
branch 18 34 52.9


line true false branch
23 0 4 unless my $v1 = eval { do { 'Statistics::Basic::Vector'->new(@var1) } }
24 0 4 unless my $v2 = eval { do { 'Statistics::Basic::Vector'->new(@var2) } }
29 0 4 if $c
33 0 4 unless $$this{'vrx'} = eval { do { 'Statistics::Basic::Variance'->new($v1) } }
34 0 4 unless $$this{'mnx'} = eval { do { 'Statistics::Basic::Mean'->new($v1) } }
35 0 4 unless $$this{'mny'} = eval { do { 'Statistics::Basic::Mean'->new($v2) } }
36 0 4 unless $$this{'cov'} = eval { do { 'Statistics::Basic::Covariance'->new($v1, $v2) } }
52 0 4 unless defined $vrx
0 4 unless $vrx > 0
53 0 4 unless defined $mnx
54 0 4 unless defined $mny
55 0 4 unless defined $cov
60 0 4 if $Statistics::Basic::DEBUG
69 4 6 if $$this{'recalc_needed'}
71 0 10 if $Statistics::Basic::DEBUG
73 2 8 wantarray ? :
128 0 0 unless defined(my $x = eval { do { ($y - $alpha) / $beta } })