Branch Coverage

blib/lib/Algorithm/CurveFit.pm
Criterion Covered Total %
branch 27 48 56.2


line true false branch
31 1 1 if not ref $_[0] and defined $_[0] and $_[0] eq 'Algorithm::CurveFit'
33 0 2 if @_ % 2
39 0 2 unless defined $args{'formula'}
41 0 2 if (ref($args{'formula'}) =~ /^Math::Symbolic/) { }
46 0 2 if not defined $formula or $@
52 0 2 unless defined $variable
57 0 2 unless grep {$_ eq $variable;} $formula->explicit_signature
62 0 2 unless defined $params and ref $params eq 'ARRAY'
66 0 2 unless @parameters
68 0 2 if grep {not defined $_ && ref $_ eq 'ARRAY';} @parameters
77 0 6 if @$p > 3 or @$p < 2 or grep {not defined $_;} @$p
85 0 6 unless grep {$_ eq $$p[0];} $formula->explicit_signature
90 0 2 unless defined $xdata and ref $xdata eq 'ARRAY' and @$xdata
98 0 2 unless defined $ydata and ref $ydata eq 'ARRAY' and @$ydata
102 0 2 unless @$ydata == @xdata
108 0 2 unless defined $max_iter
112 0 6 if @$param < 3
125 6 0 if ($trees) { }
141 2 0 $trees ? :
159 0 20 if (ref $deriv eq 'CODE') { }
163 0 0 unless (defined $value)
178 1 1155 unless (defined $value)
218 10 10 if abs $dlambda > $parameters[$pno - 1][2]
221 2 4 if $last