Branch Coverage

blib/lib/Device/Serial/SLuRM.pm
Criterion Covered Total %
branch 53 74 71.6


line true false branch
285 0 35 unless my($pktctrl, $addr, $payload) = XXX
288 0 35 if $addr & 128
297 8 27 if ($pktctrl == 0)
303 1 7 if ($seqno == 1) { }
307 7 0 if $_next_resetack_f
310 8 0 if ($(Syntax::Keyword::Match/topic) == 1 or $(Syntax::Keyword::Match/topic) == 2) { }
319 14 13 unless ($pktctrl & 128)
320 14 0 if (defined $nodestate->seqno_rx)
322 2 12 if $seqdiff < 0
331 2 9 if $is_dup
336 1 8 XXX->is_multidrop ? :
9 0 $_on_notify ? :
345 1 2 if (my $slot = $_rx_nodestate->pending_slot($seqno)) { }
347 1 0 if defined $slot->{'payload'}
350 0 2 if $is_dup
361 2 0 if ($_on_request) { }
373 0 9 unless ($slot)
379 0 9 if $METRICS
387 8 1 if ($pktctrl == 176) { }
397 0 1 length $payload > 3 ? :
405 0 9 if $METRICS
416 0 4 unless $_rx_nodestate
417 2 2 unless my $slot = $_rx_nodestate->pending_slot($seqno)
426 11 16 if ($(Syntax::Keyword::Match/topic) == 16) { }
3 13 elsif ($(Syntax::Keyword::Match/topic) == 48) { }
9 4 elsif ($(Syntax::Keyword::Match/topic) == 176 or $(Syntax::Keyword::Match/topic) == 224) { }
4 0 elsif ($(Syntax::Keyword::Match/topic) == 192) { }
475 2 8 unless $nodestate->did_reset
487 2 9 if (my $handle_request = $args{'handle_request'})
576 0 5 unless $_next_resetack_f->is_done
597 0 4 unless $nodestate->did_reset
641 2 9 unless $nodestate->did_reset
650 0 11 if $nodestate->pending_slot($seqno)
689 0 14 unless my $slot = $nodestate->pending_slot($seqno)
693 3 1 if ($slot->{'retransmit_count'}--) { }
707 0 3 if $METRICS
717 0 1 if $METRICS