Branch Coverage

blib/lib/Math/Symbolic/Custom/DefaultMods.pm
Criterion Covered Total %
branch 68 92 73.9


line true false branch
88 695 828 if ($ttype == 1 or $ttype == 2) { }
828 0 elsif ($ttype == 0) { }
106 4 70 if ($type == 6 and $$operands[0]->term_type == 2)
113 4 0 if (grep({$_ eq $name;} @sig) > 0 and not @sig == 1 && $sig[0] eq $name)
124 1 69 unless $tree->term_type == 0
162 4 7 if ($tree->is_simple_constant)
163 4 0 unless $tree->term_type == 1
168 4 3 if $tree->term_type == 2
191 1 31 unless $constant
192 15 16 if ref $constant
195 0 31 if ($tt == 1) { }
31 0 elsif ($tt == 0) { }
201 16 15 if ($type == 0 or $type == 1)
204 4 12 if ($$ops[0]->is_simple_constant) { }
5 7 elsif ($$ops[1]->is_simple_constant) { }
209 9 7 if (defined $const_op)
213 4 5 if ($const_op == 0) { }
217 5 0 $type == 0 ? :
220 4 5 if ($value == 0)
221 4 0 if $const_op == 1 or $type == 0
224 0 5 $type == 1 ? :
2 3 $const_op == 0 ? :
231 7 0 if ($$ops[1]->term_type == 0) { }
233 4 3 if ($otype == 0 or $otype == 1)
234 4 0 $type == 0 ? :
242 0 0 $type == 0 ? :
273 0 16 unless defined $constant
274 0 16 if ref $constant
275 1 15 if $constant == 1
276 1 14 if $constant == 0
279 0 14 if ($tt == 1) { }
14 0 elsif ($tt == 0) { }
285 14 0 if ($type == 2 or $type == 3)
288 3 11 if ($$ops[0]->is_simple_constant) { }
5 6 elsif ($$ops[1]->is_simple_constant) { }
293 8 6 if (defined $const_op)
297 3 5 if ($const_op == 0) { }
301 5 0 $type == 2 ? :
304 3 5 if ($value == 1)
305 3 0 if $const_op == 1 or $type == 2
308 0 5 $type == 3 ? :
2 3 $const_op == 0 ? :
315 6 0 if ($$ops[1]->term_type == 0) { }
317 4 2 if ($otype == 2 or $otype == 3)
318 4 0 $type == 2 ? :
326 0 0 $type == 2 ? :