Condition Coverage

blib/lib/Algorithm/CurveFit.pm
Criterion Covered Total %
condition 13 36 36.1


and 3 conditions

line !l l&&!r l&&r condition
31 0 0 2 not ref $_[0] and defined $_[0]
0 1 1 not ref $_[0] and defined $_[0] and $_[0] eq 'Algorithm::CurveFit'
62 0 2 0 defined $params and ref $params eq 'ARRAY'
67 0 0 6 defined $_ && ref $_ eq 'ARRAY'
90 0 2 0 defined $xdata and ref $xdata eq 'ARRAY'
0 2 0 defined $xdata and ref $xdata eq 'ARRAY' and @$xdata
98 0 2 0 defined $ydata and ref $ydata eq 'ARRAY'
0 2 0 defined $ydata and ref $ydata eq 'ARRAY' and @$ydata

or 3 conditions

line l !l&&r !l&&!r condition
46 0 0 2 not defined $formula or $@
77 0 0 6 @$p > 3 or @$p < 2
0 0 6 @$p > 3 or @$p < 2 or grep {not defined $_;} @$p
150 0 6 0 not $max_iter or ++$iteration < $max_iter