Branch Coverage

blib/lib/Math/Symbolic/Custom/ToShorterString.pm
Criterion Covered Total %
branch 71 74 95.9


line true false branch
84 1159 1191 if ($t->term_type == 1 or $t->term_type == 2)
88 244 947 unless defined $brackets_on
90 932 259 if ($brackets_on)
93 252 680 if (_is_all_operator($t, 2) or _is_all_operator($t, 0))
97 342 590 if (_is_all_operator($t, [0, 1, 2]) and _is_expanded($t))
107 982 209 if ($t->arity == 2) { }
209 0 elsif ($t->arity == 1) { }
111 12 970 if (not defined $op_str) { }
174 796 elsif ($t->type == 7) { }
114 1 11 if ($op_info->{'prefix_string'} eq 'log' and $t->op1->term_type == 1 and $t->op1->{'special'} eq 'euler') { }
129 12 162 if ($t->op2->term_type == 1 and $t->op2->value == 0.5) { }
0 162 elsif ($t->op2->term_type == 0 and $t->op2->type == 3 and $t->op2->op1->term_type == 1 and $t->op2->op1->value == 1 and $t->op2->op2->term_type == 1 and $t->op2->op2->value == 2) { }
54 206 elsif ($t->op1->term_type == 1 and $t->op1->{'special'} eq 'euler') { }
145 904 78 if ($string eq "")
149 479 425 if ($brackets_on)
155 371 587 if ($op->term_type == 1 or $op->term_type == 2) { }
587 0 elsif ($op->term_type == 0) { }
161 61 526 if (not defined $Math::Symbolic::Operator::Op_Types[$op->type]{'infix_string'}) { }
148 378 elsif ($op->type == 7) { }
173 536 260 unless $op_str eq "^" or $op_str eq "*" and not $t->op1->term_type == 0 && $t->op1->type == 7
175 211 693 $brackets[0] ? :
211 693 $brackets[0] ? :
167 737 $brackets[1] ? :
167 737 $brackets[1] ? :
187 164 45 if (not defined $op_str) { }
193 3 42 $is_op1 ? :
3 42 $is_op1 ? :
212 1574 4105 if $t->term_type == 1 or $t->term_type == 2
216 342 3763 if (defined $op->{'prefix_string'} and not defined $op->{'infix_string'})
220 1721 2042 if (ref $op_type eq 'ARRAY') { }
222 670 1051 if scalar @m == 0
225 1569 473 if $t->type != $op_type
240 394 982 unless defined $flag
242 637 739 if $t->term_type == 1 or $t->term_type == 2
245 181 558 if (defined $op->{'prefix_string'} and not defined $op->{'infix_string'})
249 67 75 if ($flag and $t->type == 0 || $t->type == 1)
253 314 177 if ($t->type == 2 or $t->type == 1)