Branch Coverage

blib/lib/Math/Symbolic/Derivative.pm
Criterion Covered Total %
branch 131 174 75.2


line true false branch
168 63 0 if $simplifier
181 88 69 if ($to1 == 1)
182 0 88 if $$o1{'value'} == 0
184 0 88 if $$o1{'value'} == 0
185 58 30 if $deriv->term_type == 1
188 1 98 if ($to2 == 1)
189 0 1 if $$o2{'value'} == 0
191 0 1 if $$o2{'value'} == 0
192 1 0 if $deriv->term_type == 1
203 69 29 if ($tdo1 == 1) { }
204 0 69 if ($to2 == 1) { }
37 32 elsif ($$do1{'value'} == 0) { }
10 22 elsif ($$do1{'value'} == 1) { }
218 16 82 if ($tdo2 == 1) { }
219 0 16 if ($to1 == 1) { }
8 8 elsif ($$do2{'value'} == 0) { }
8 0 elsif ($$do2{'value'} == 1) { }
234 37 61 if ($m1->term_type == 1) { }
6 55 elsif ($m2->term_type == 1) { }
235 37 0 if $$m1{'value'} == 0
236 0 0 if ($m2->term_type == 1)
241 6 0 if $$m2{'value'} == 0
255 3 29 if ($op2->is_simple_constant) { }
13 16 elsif ($op1->is_simple_constant) { }
259 0 3 if ($val == 0) { }
0 3 elsif ($val == 1) { }
272 0 13 if ($val == 0)
277 5 8 if ($tdo2 == 1) { }
278 1 4 if $$do2{'value'} == 0
292 16 0 unless $do1
293 16 0 unless $do2
299 1 15 if ($do1->is_zero) { }
3 12 elsif ($do1->is_one) { }
308 0 16 if ($do2->is_zero) { }
1 15 elsif ($do2->is_one) { }
317 1 15 if (not defined $m1) { }
0 15 elsif (not defined $m2) { }
319 0 1 unless defined $m2
328 15 1 unless (defined $upper)
346 40 27 if ($v->term_type == 1)
349 13 27 if ($u->term_type == 2)
352 13 0 if ($dtt == 1)
354 0 13 if $$d{'value'} == 0
356 0 13 if $$v{'value'} == 1
357 5 8 if $$v{'value'} == 2
389 26 4 if ($a->term_type == 1 and $$a{'special'} eq 'euler')
412 29 70 if ($type == 9) { }
52 18 elsif ($type == 10) { }
5 13 elsif ($type == 17) { }
5 8 elsif ($type == 18) { }
8 0 elsif ($type == 11 or $type == 12) { }
434 1 7 if $type == 12
439 99 0 if ($d_inner->term_type == 1)
441 1 98 if ($spec eq 'zero') { }
73 25 elsif ($spec eq 'one') { }
457 2 4 if ($type == 13 or $type == 14) { }
2 2 elsif ($type == 15 or $type == 16) { }
2 0 elsif ($type == 19 or $type == 20) { }
458 1 1 $type == 13 ? :
468 1 1 $type == 15 ? :
479 1 1 $tree->type == 19 ? :
496 6 0 if ($d_inner->term_type == 1)
498 0 6 if ($spec eq 'zero') { }
0 6 elsif ($spec eq 'one') { }
548 0 449 unless defined $var
549 10 439 if (ref $var eq '') { }
551 0 10 if ref $var ne 'Math::Symbolic::Variable'
555 0 439 if ref $var ne 'Math::Symbolic::Variable'
561 383 66 unless ($cloned)
566 276 173 if ($tree->term_type == 0) { }
59 114 elsif ($tree->term_type == 1) { }
114 0 elsif ($tree->term_type == 2) { }
571 0 276 unless defined $subref
579 96 18 if ($tree->name eq $var->name) { }
606 0 283 unless defined $var
607 0 283 if (ref $var eq '') { }
609 0 0 if ref $var ne 'Math::Symbolic::Variable'
613 0 283 if ref $var ne 'Math::Symbolic::Variable'
619 247 36 unless ($cloned)
624 191 92 if ($tree->term_type == 0) { }
10 82 elsif ($tree->term_type == 1) { }
82 0 elsif ($tree->term_type == 2) { }
627 186 5 if (grep({$_ eq $var_name;} @tree_sig) > 0) { }
632 0 186 unless defined $subref
647 79 3 if ($name eq $var_name) { }
654 3 2 if ($ident eq $var_name)
659 3 0 if ($is_dependent) { }