Branch Coverage

blib/lib/Math/Taylor.pm
Criterion Covered Total %
branch 46 70 65.7


line true false branch
87 0 8 if @_ % 2
103 2 6 if (ref $proto)
105 2 0 if defined $$proto{'variable'}
107 2 0 if defined $$proto{'point'}
108 2 0 if defined $$proto{'remainder_type'}
114 5 3 if exists $args{'function'}
115 0 8 if exists $args{'variable'}
116 4 4 if exists $args{'point'}
118 1 7 unless defined $self->function
156 18 7 unless (@_)
161 0 7 if (not defined $function) { }
1 6 elsif (ref($function) =~ /^Math::Symbolic/) { }
6 0 elsif (not ref $function) { }
170 0 6 if ($@ or not defined $parsed or not ref($parsed) =~ /^Math::Symbolic/)
203 13 5 unless (@_)
207 5 0 if (defined $point) { }
244 10 2 unless (@_)
248 2 0 if (defined $variable and ref $variable eq 'Math::Symbolic::Variable' || !ref($variable)) { }
254 2 0 unless (ref $variable)
257 0 2 if ($@ or not defined $parsed or not ref($parsed) =~ /^Math::Symbolic::Variable/)
274 0 0 !defined($variable) ? :
290 1 1 if (not exists $signature{$var->to_string})
319 0 1 unless (@_)
323 1 0 if (defined $err and $err eq 'lagrange' or $err eq 'cauchy') { }
350 0 3 unless defined $degree
351 0 3 unless $degree >= 0
366 0 3 if (exists $sig{$posname})
382 0 3 unless (defined $poly and ref($poly) =~ /^Math::Symbolic/)
393 0 3 if (@replace)
433 2 4 unless defined $degree
434 0 6 unless $degree >= 0
438 2 4 unless defined $tvar
454 0 6 if (exists $sig{$posname})
465 3 3 if ($type eq 'lagrange') { }
479 0 6 if (@replace)