Branch Coverage

blib/lib/Device/Serial/SLuRM.pm
Criterion Covered Total %
branch 46 66 69.7


line true false branch
293 1 32 if (crc8($pkt) != 0)
295 0 1 if $METRICS
298 0 1 if $pkt =~ /\x55/u
304 2 30 if (crc8($pkt) != 0)
306 0 2 if $METRICS
309 1 1 if $pkt =~ /\x55/u
319 0 30 if $METRICS
335 4 15 if ($pktctrl == 0)
336 4 0 if ($seqno == 1 or $seqno == 2) { }
340 1 3 if ($seqno == 1) { }
344 3 0 if $_next_resetack_f
355 10 5 unless ($pktctrl & 128)
356 10 0 if (defined $_seqno_rx)
358 2 8 if $seqdiff < 0
367 2 8 if $is_dup
372 8 0 $_on_notify ? :
379 0 5 unless ($slot)
384 4 1 if ($pktctrl == 176) { }
394 0 1 length $payload > 3 ? :
402 0 5 if $METRICS
415 10 5 if ($(Syntax::Keyword::Match/topic) == 16) { }
5 0 elsif ($(Syntax::Keyword::Match/topic) == 176 or $(Syntax::Keyword::Match/topic) == 224) { }
456 1 4 unless $_did_reset
475 0 12 unless $_run_f
477 0 12 unless eval { do { $_run_f->cancel } }
501 0 31 if $METRICS
550 0 2 unless $_did_reset
583 1 5 unless $_did_reset
592 0 6 if $_pending_slots[$seqno]
613 0 9 unless my $slot = $_pending_slots[$seqno]
617 3 1 if ($slot->{'retransmit_count'}--) { }
631 0 3 if $METRICS
641 0 1 if $METRICS