Branch Coverage

blib/lib/Math/Symbolic/Custom/ToTallString.pm
Criterion Covered Total %
branch 97 112 86.6


line true false branch
87 30 0 if (defined $pretty and ref $pretty eq "ARRAY")
89 0 30 if (defined $indent) { }
91 0 0 if ($indent =~ /\A \d+ \z/msx) { }
121 30 221 unless defined $brackets_on
123 49 202 if ($t->term_type == 2)
132 85 117 if ($t->term_type == 1)
133 4 81 if ($t->{'special'} eq 'euler') { }
145 117 0 if ($t->term_type == 0)
150 8 109 unless defined $opn
152 108 9 if ($t->arity == 2) { }
9 0 elsif ($t->arity == 1) { }
154 2 106 if (not defined $op_str) { }
30 76 elsif ($t->type == 3) { }
22 54 elsif ($t->type == 7) { }
157 0 2 if ($op_info->{'prefix_string'} eq 'log' and $t->op1->term_type == 1 and $t->op1->{'special'} eq 'euler') { }
173 2 2 if ($i == $height_offset) { }
200 6 24 if ($num_w > $den_w) { }
232 2 28 if (defined $p and $p->term_type == 0 and $p->type == 7) { }
246 4 0 if ($t->op2->term_type == 1 and $t->op2->value == "0.5" or $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)
271 23 18 if (scalar @frag2_rows) { }
281 0 18 if ($done_op) { }
291 18 23 unless scalar @frag1_rows
307 6 3 if (not defined $op_str) { }
3 0 elsif ($op_str eq '-') { }
318 3 0 if ($t->op1->term_type == 2 or $t->op1->term_type == 1)
328 0 0 if ($i == $height_offset) { }
360 10 17 if ($i == $height_offset) { }
380 39 17 if ($brackets_on)
383 18 21 if (_is_all_operator($t, 2) or _is_all_operator($t, 0))
386 26 13 if (_is_all_operator($t, [0, 1, 2, 4, 7]) and _is_expanded($t))
400 5 51 if ($h1 > $h2) { }
13 38 elsif ($h1 < $h2) { }
403 5 0 if ($new_h > 1 and $new_h % 2 == 0)
410 6 7 if ($new_h > 1 and $new_h % 2 == 0)
422 19 37 if ($op_str eq "*")
423 14 5 if ($h1 == 1 and $h2 == 1) { }
0 5 elsif ($t->op1->term_type == 0 and $t->op1->type == 7) { }
3 2 elsif ($t->op2->term_type == 0 and $t->op2->type == 7) { }
445 74 27 if ($i >= $f1_h_offset and scalar @frag1_rows) { }
453 96 5 if ($i >= $f2_h_offset and scalar @frag2_rows) { }
461 56 45 if ($i == $op_h_offset) { }
473 9 34 if defined $p and $p->term_type == 0 and $p->type == 7
474 14 29 if defined $p and $p->term_type == 0 and $p->type == 3
475 1 55 if defined $p and $p->arity == 1
476 1 42 if defined $op and $op eq 'ln' || $op eq 'sqrt'
478 14 42 if ($do_brackets) { }
494 143 189 if $t->term_type == 1 or $t->term_type == 2
498 4 185 if (defined $op->{'prefix_string'} and not defined $op->{'infix_string'})
502 89 96 if (ref $op_type eq 'ARRAY') { }
504 13 76 if scalar @m == 0
507 61 35 if $t->type != $op_type
518 30 117 unless defined $flag
520 81 66 if $t->term_type == 1 or $t->term_type == 2
523 2 64 if (defined $op->{'prefix_string'} and not defined $op->{'infix_string'})
527 4 16 if ($flag and $t->type == 0 || $t->type == 1)
531 20 40 if ($t->type == 2 or $t->type == 1)