Branch Coverage

blib/lib/Gcode/Interpreter/Ultimaker.pm
Criterion Covered Total %
branch 39 114 34.2


line true false branch
69 5 1 if ($method eq 'fast') { }
1 0 elsif ($method eq 'table') { }
91 1 2 if ($index == -1)
100 0 2 if ($end > 0) { }
107 0 2 if ($@)
126 8 24 if ($char eq 'X') { }
8 16 elsif ($char eq 'Y') { }
8 8 elsif ($char eq 'Z') { }
8 0 elsif ($char eq 'E') { }
156 32 0 if (defined $adj)
157 8 24 if ($i == 3) { }
158 8 0 if ($$printer{'ext_abs'}) { }
164 0 24 if ($$printer{'pos_abs'}) { }
181 8 0 if ($Gcode::Interpreter::Ultimaker::method == 0) { }
0 0 elsif ($Gcode::Interpreter::Ultimaker::method == 1) { }
195 0 0 if $diffs[$i] == 0
199 0 0 if ($diff <= $Gcode::Interpreter::Ultimaker::xy_distances[$j])
202 0 0 if ($time > $duration)
211 0 0 if ($diffs[2] != 0)
214 0 0 if ($diff <= $Gcode::Interpreter::Ultimaker::z_distances[$i])
216 0 0 if ($time > $duration)
243 2 8 if ($_[2] == 0 or $_[2] == 1) { }
2 6 elsif ($_[2] == 4) { }
0 6 elsif ($_[2] == 10) { }
0 6 elsif ($_[2] == 11) { }
0 6 elsif ($_[2] == 20) { }
0 6 elsif ($_[2] == 21) { }
6 0 elsif ($_[2] == 28) { }
0 0 elsif ($_[2] == 90) { }
0 0 elsif ($_[2] == 91) { }
0 0 elsif ($_[2] = 92) { }
249 1 1 if (my $s = &num_from_code('S', $_[1])) { }
1 0 elsif (my $p = &num_from_code('P', $_[1])) { }
275 24 0 if (defined $pos[$i])
276 4 20 defined ${$printer_zero_adj;}[$i] ? :
287 24 0 if (defined $pos[$i])
303 0 0 if (defined $pos[$i])
304 0 0 defined ${$_[0]{'zero_adj'};}[$i] ? :
322 0 0 if ($m == 0 or $m == 1 or $m == 80 or $m == 81) { }
0 0 elsif ($m == 82) { }
0 0 elsif ($m == 83) { }
0 0 elsif ($m == 84 or $m == 92 or $m == 101 or $m == 103) { }
0 0 elsif ($m == 104 or $m == 109) { }
0 0 elsif ($m == 105) { }
0 0 elsif ($m == 106 or $m == 107 or $m == 108) { }
0 0 elsif ($m == 110 or $m == 113 or $m == 117) { }
0 0 elsif ($m == 140 or $m == 190) { }
0 0 elsif ($m == 221) { }
343 0 0 if (defined $temp)
347 0 0 if ($m == 109)
366 0 0 if (defined $temp)
370 0 0 if ($m == 190)
402 0 10 unless defined $cmd
413 0 10 unless (defined $num)
417 10 0 if ($code eq 'G') { }
0 0 elsif ($code eq 'M') { }
0 0 elsif ($code eq 'T') { }