Branch Coverage

blib/lib/Device/Serial/SLuRM.pm
Criterion Covered Total %
branch 49 72 68.0


line true false branch
301 0 5 $METRICS ? :
308 1 32 if (crc8($pkt) != 0)
310 0 1 if $METRICS
313 0 1 if $pkt =~ /\x55/u
319 2 30 if (crc8($pkt) != 0)
321 0 2 if $METRICS
324 1 1 if $pkt =~ /\x55/u
334 0 30 if $METRICS
350 4 15 if ($pktctrl == 0)
351 4 0 if ($seqno == 1 or $seqno == 2) { }
355 1 3 if ($seqno == 1) { }
359 3 0 if $_next_resetack_f
370 10 5 unless ($pktctrl & 128)
371 10 0 if (defined $_seqno_rx)
373 2 8 if $seqdiff < 0
382 2 8 if $is_dup
387 8 0 $_on_notify ? :
394 0 5 unless ($slot)
400 0 5 if $METRICS
402 4 1 if ($pktctrl == 176) { }
412 0 1 length $payload > 3 ? :
420 0 5 if $METRICS
433 10 5 if ($(Syntax::Keyword::Match/topic) == 16) { }
5 0 elsif ($(Syntax::Keyword::Match/topic) == 176 or $(Syntax::Keyword::Match/topic) == 224) { }
474 1 4 unless $_did_reset
493 0 12 unless $_run_f
495 0 12 unless eval { do { $_run_f->cancel } }
519 0 31 if $METRICS
520 0 31 if $METRICS
570 0 2 unless $_did_reset
603 1 5 unless $_did_reset
612 0 6 if $_pending_slots[$seqno]
634 0 9 unless my $slot = $_pending_slots[$seqno]
638 3 1 if ($slot->{'retransmit_count'}--) { }
652 0 3 if $METRICS
662 0 1 if $METRICS