Branch Coverage

blib/lib/Device/Serial/SLuRM.pm
Criterion Covered Total %
branch 48 70 68.5


line true false branch
296 0 5 $METRICS ? :
303 1 32 if (crc8($pkt) != 0)
305 0 1 if $METRICS
308 0 1 if $pkt =~ /\x55/u
314 2 30 if (crc8($pkt) != 0)
316 0 2 if $METRICS
319 1 1 if $pkt =~ /\x55/u
329 0 30 if $METRICS
345 4 15 if ($pktctrl == 0)
346 4 0 if ($seqno == 1 or $seqno == 2) { }
350 1 3 if ($seqno == 1) { }
354 3 0 if $_next_resetack_f
365 10 5 unless ($pktctrl & 128)
366 10 0 if (defined $_seqno_rx)
368 2 8 if $seqdiff < 0
377 2 8 if $is_dup
382 8 0 $_on_notify ? :
389 0 5 unless ($slot)
394 4 1 if ($pktctrl == 176) { }
404 0 1 length $payload > 3 ? :
412 0 5 if $METRICS
425 10 5 if ($(Syntax::Keyword::Match/topic) == 16) { }
5 0 elsif ($(Syntax::Keyword::Match/topic) == 176 or $(Syntax::Keyword::Match/topic) == 224) { }
466 1 4 unless $_did_reset
485 0 12 unless $_run_f
487 0 12 unless eval { do { $_run_f->cancel } }
511 0 31 if $METRICS
512 0 31 if $METRICS
562 0 2 unless $_did_reset
595 1 5 unless $_did_reset
604 0 6 if $_pending_slots[$seqno]
625 0 9 unless my $slot = $_pending_slots[$seqno]
629 3 1 if ($slot->{'retransmit_count'}--) { }
643 0 3 if $METRICS
653 0 1 if $METRICS