Branch Coverage

blib/lib/Device/Modem/Protocol/Xmodem.pm
Criterion Covered Total %
branch 0 44 0.0


line true false branch
53 0 0 length $data > 128 ? :
56 0 0 defined $num ? :
0 0 defined $data ? :
93 0 0 wantarray ? :
111 0 0 $self->{'length'} == 128 ? :
140 0 0 unless defined $type
142 0 0 if ($type eq 'checksum') { }
0 0 elsif ($type eq 'crc16') { }
0 0 elsif ($type eq 'crc32') { }
234 0 0 unless $self->modem->ostype eq 'windoze'
249 0 0 unless (exists $opt{'modem'})
293 0 0 if ($message_type eq 1)
323 0 0 unless $modem and $file
343 0 0 unless open OUTFILE, '>' . $file
351 0 0 if ($message{'type'} eq 0) { }
0 0 elsif ($message{'type'} eq 4) { }
0 0 elsif ($message{'type'} eq 1) { }
375 0 0 if (255 - $message{'complement'} != $message{'number'})
381 0 0 if ($message{'number'} < $self->{'current_block'}->number or $message{'number'} > $self->{'current_block'}->number + 1)
390 0 0 unless (defined $new_block and $new_block->verify('checksum', $message{'checksum'}))
396 0 0 if ($message_status) { }
460 0 0 if $DEBUG