line |
true |
false |
branch |
178
|
0 |
0 |
unless my $type = ref $self |
183
|
0 |
0 |
unless (exists $$self{$name}) |
185
|
0 |
0 |
if (@_) { } |
187
|
0 |
0 |
if (defined $SETTABLE{$name}) { } |
197
|
0 |
2 |
if (defined $$self{'_serial'}) |
220
|
0 |
0 |
unless (ref $self) |
225
|
0 |
0 |
if ($connectiontype eq 'Win32::SerialPort' or $connectiontype eq 'Device::SerialPort') { } |
240
|
0 |
0 |
unless ($connection->write_settings) |
268
|
0 |
0 |
unless (ref $self) |
271
|
0 |
0 |
unless (defined $powerreq) |
272
|
0 |
0 |
if ($powerreq == 1) { } |
275
|
0 |
0 |
if (not $self->_send_command($COMMANDS{'reset'}) && $self->_send_command($COMMANDS{'poweroff'}) && $self->_send_command($COMMANDS{'poweron'}) && $self->gain($current_gain) && $self->_send_command($COMMANDS{'request_signal'}) && $self->_send_command($COMMANDS{'request_sid'}) && $self->mute($current_mute)) |
309
|
0 |
0 |
unless (ref $self) |
313
|
0 |
0 |
unless (defined $gainreq) |
316
|
0 |
0 |
if (not $gainreq <= 0 and $gainreq >= -9) |
324
|
0 |
0 |
unless ($self->_send_command($cmd)) |
344
|
0 |
0 |
unless (ref $self) |
348
|
0 |
0 |
unless (defined $mutereq) |
350
|
0 |
0 |
unless ($mutereq == 0 or $mutereq == 1) |
357
|
0 |
0 |
unless ($self->_send_command($cmd)) |
380
|
0 |
0 |
unless (ref $self) |
385
|
0 |
0 |
unless (defined $chanreq) |
386
|
0 |
0 |
if (defined $offsetreq and $offsetreq =~ /0|1|-1/) |
419
|
0 |
0 |
unless (ref $self) |
423
|
0 |
0 |
unless (defined $spins) |
462
|
0 |
1 |
if (!ref($self) eq 'CODE') |
464
|
0 |
1 |
unless (ref $funcref) |
465
|
0 |
1 |
unless (exists $DEFAULTS{'_callbacks'}{$reqtype}) |
507
|
0 |
0 |
unless (ref $self) |
510
|
0 |
0 |
unless (defined $verbreq) |
511
|
0 |
0 |
if ($verbreq == 0) |
517
|
0 |
0 |
if ($verbreq == 1) |
545
|
0 |
0 |
if ($serial->get_tick_count > $end_ticks or $end_ticks - $serial->get_tick_count > 200000) |
556
|
0 |
0 |
if ($buffer_count > 0) |
563
|
0 |
0 |
if ($input_count > 0) |
573
|
0 |
0 |
if ($data_count > $count) |
583
|
0 |
0 |
unless (ref $self) |
587
|
0 |
0 |
if (defined $waiting and $waiting > 6) |
597
|
0 |
0 |
if $headercount == 0 |
598
|
0 |
0 |
if ($headercount < 6) |
599
|
0 |
0 |
if ($debug) |
608
|
0 |
0 |
if ($headerescapes) |
610
|
0 |
0 |
if ($debug) |
613
|
0 |
0 |
if $headercount2 < $headerescapes |
619
|
0 |
0 |
if $start ne $START |
622
|
0 |
0 |
if ($length == 27) |
623
|
0 |
0 |
if ($debug) |
630
|
0 |
0 |
if $datacount < $length + 1 |
634
|
0 |
0 |
if ($escapecount) |
636
|
0 |
0 |
if ($debug) |
639
|
0 |
0 |
if $datacount2 < $escapecount |
642
|
0 |
0 |
if ($escapecount) |
644
|
0 |
0 |
if ($debug >= 3) |
647
|
0 |
0 |
if ($calculated ne $checksum) |
649
|
0 |
0 |
if ($debug) |
655
|
0 |
0 |
if ($type eq $TYPES{'ack'}) |
657
|
0 |
0 |
if ($debug) |
664
|
0 |
0 |
if ($type eq $TYPES{'command'}) |
666
|
0 |
0 |
if ($seq == $$self{'_lastreq'}) |
668
|
0 |
0 |
if ($debug > 2) |
674
|
0 |
0 |
if (defined $UPDATES{$updatetype}) { } |
678
|
0 |
0 |
if ($debug) |
681
|
0 |
0 |
if (defined $updatehandler) |
691
|
0 |
0 |
if ($debug) |
730
|
2 |
0 |
if (ref $handler) |
751
|
0 |
0 |
if ($debug > 1) |
763
|
0 |
0 |
if ($debug > 1) |
789
|
2 |
0 |
if ($numitems > 0) |
800
|
0 |
9 |
if ($debug > 1) |
801
|
2 |
7 |
unless (defined $typevar) |
802
|
0 |
2 |
if ($debug) |
810
|
0 |
2 |
if ($remainder > 0) |
820
|
0 |
0 |
if ($self->debug >= 3) |
824
|
0 |
0 |
unless $count_out == length $data |
834
|
0 |
0 |
if ($self->debug >= 3) |
838
|
0 |
0 |
unless $count_out == length $data |
863
|
0 |
0 |
if ($$self{'debug'}) |
864
|
0 |
0 |
if ($self->debug >= 3) |
867
|
0 |
0 |
if $$self{'_lastack'} == $sequence |
873
|
0 |
0 |
if ($$self{'_sequence'} > 255) |
875
|
0 |
0 |
if ($attempts == 3 and $$self{'lastack'} != $sequence) |
895
|
1 |
3 |
if ($sum % 256 == 0) |
909
|
0 |
0 |
if ($char >= 32 and $char <= 126) { } |