Branch Coverage

blib/lib/Device/Chip/CC1101.pm
Criterion Covered Total %
branch 29 42 69.0


line true false branch
127 0 17 unless $addr >= 0 and $addr <= 61
129 16 1 if $addr >= 48
350 3 0 if ($mod_format =~ /-FSK$|^GFSK$/u)
414 0 8 unless defined $_config
418 1 7 if (defined(my $mode = delete $changes{'mode'}))
419 0 1 unless $PRESET_MODES{$mode}
425 1 7 if (defined(my $band = delete $changes{'band'}))
426 0 1 unless $BANDS{$band}
434 2 6 if defined $newpatable
447 7 1 if (my $len = $until - $addr)
452 2 6 if (defined $newpatable and $newpatable ne $_patable)
543 0 11 unless $cmd >= 48 and $cmd <= 61
633 0 4 unless XXX >= $len
692 1 1 $fixedlen ? :
694 2 0 if $append_status
699 2 0 if ($append_status)
731 1 1 if ($fixedlen) { }
733 0 1 unless $pktlen == $_cached_config{'PACKET_LENGTH'}
737 0 1 unless $pktlen <= 62
743 1 1 unless $fixedlen
749 0 0 unless $timeout--