Branch Coverage

blib/lib/Device/Velleman/PPS10.pm
Criterion Covered Total %
branch 3 92 3.2


line true false branch
98 0 0 if (index($packet_bin, "BA\n\cA") == 0) { }
0 0 elsif (index($packet_bin, 'BR') == 0) { }
0 0 elsif (index($packet_bin, "BS\cK\000") == 0) { }
118 0 0 if ($shift_only) { }
127 0 0 if (my $time_per_point = $$p_info{'time_per_point'}) { }
135 0 0 if (my $volts_per_point = $$p_info{'volts_per_point'}) { }
169 0 1 defined $port ? :
170 0 1 defined $read_bytes ? :
173 1 0 unless my $sp = 'Device::SerialPort'->new($port)
186 0 0 if $verbose
190 0 0 if ($debug)
195 0 0 defined $verbose ? :
0 0 defined $debug ? :
241 0 0 if ($verbose)
245 0 0 if ($read_length == 0) { }
0 0 elsif ($read_length < $read_bytes) { }
252 0 0 if (my $raw_fh = $$self{'raw_out_fh'})
261 0 0 if defined wantarray
290 0 0 if ($verbose and $ba_index_0 == -1)
295 0 0 if $ba_index_0 == -1
297 0 0 if ($ba_index_0 >= 0) { }
0 0 elsif ($br_index >= 0) { }
0 0 elsif ($bs_index >= 0) { }
298 0 0 if $debug
305 0 0 unless ($$self{'first_ba_seen'})
309 0 0 if ($verbose)
324 0 0 unless ($ba_index_1 > 0)
328 0 0 if ($debug)
334 0 0 if ($debug)
340 0 0 if $verbose
378 0 0 if $verbose
402 0 0 if ($volts_key >= 0 and $volts_key <= 11 or $volts_key >= 16 and $volts_key <= 27) { }
0 0 elsif ($volts_key >= 32 and $volts_key <= 43 or $volts_key >= 48 and $volts_key <= 59) { }
409 0 0 if ($volts_key >= 16 and $volts_key <= 27 or $volts_key >= 48 and $volts_key <= 59) { }
0 0 elsif ($volts_key >= 32 and $volts_key <= 43 or $volts_key >= 0 and $volts_key <= 11) { }
417 0 0 $time_per_div ? :
420 0 0 $volts_per_div ? :
422 0 0 if ($debug)
423 0 0 unless $time_per_div
426 0 0 unless $volts_per_div
466 0 0 if (defined $$self{'raw_out_fh'})
467 0 0 if $$self{'verbose'}
474 0 0 unless open my $out_fh, '>', $filename
479 0 0 if ($unbuffer)
492 0 0 if (defined $$self{'raw_out_fh'})
504 0 0 if $$self{'debug'}