Branch Coverage

blib/lib/Device/Chip/CC1101.pm
Criterion Covered Total %
branch 31 44 70.4


line true false branch
128 0 21 unless $addr >= 0 and $addr <= 61
130 20 1 if $addr >= 48
351 3 0 if ($mod_format =~ /-FSK$|^GFSK$/u)
415 0 8 unless defined $_config
419 1 7 if (defined(my $mode = delete $changes{'mode'}))
420 0 1 unless $PRESET_MODES{$mode}
426 1 7 if (defined(my $band = delete $changes{'band'}))
427 0 1 unless $BANDS{$band}
435 2 6 if defined $newpatable
448 7 1 if (my $len = $until - $addr)
453 2 6 if (defined $newpatable and $newpatable ne $_patable)
544 0 13 unless $cmd >= 48 and $cmd <= 61
595 1 9 unless $ok
643 0 4 unless XXX >= $len
702 1 1 $fixedlen ? :
704 2 0 if $append_status
709 2 0 if ($append_status)
741 1 1 if ($fixedlen) { }
743 0 1 unless $pktlen == $_cached_config{'PACKET_LENGTH'}
747 0 1 unless $pktlen <= 62
753 1 1 unless $fixedlen
761 0 0 unless &gettimeofday() < $deadline