Branch Coverage

blib/lib/Device/AVR/UPDI.pm
Criterion Covered Total %
branch 49 70 70.0


line true false branch
222 0 0 unless (-f $yamlpath)
322 0 110 length $buf >= length $write ? :
337 0 110 if $got ne $exp
348 14 15 $_nvm_version >= 2 ? :
357 6 39 if ($_reg_ctrla & 8) { }
363 0 39 unless $ack eq "\@"
371 5 5 $_nvm_version >= 2 ? :
413 0 5 if $chunklen > 256
416 5 0 if $chunklen > 1
438 2 1 if $len > 1
444 2 1 if ($_reg_ctrla & 8) { }
466 2 0 if $len > 1
472 2 0 if ($_reg_ctrla & 8) { }
481 2 0 if (length($data) % 2)
516 0 2 unless length $key == 8
529 4 5 $on ? :
531 8 1 if $_reg_ctrla != $val
561 0 1 unless $sib->{'nvm_version'} =~ /^P:(\d)/u
693 0 1 unless 8 & XXX
695 0 1 if $opts{'no_reset'}
702 1 1 unless 1 & XXX
706 0 1 if not $timeout
721 0 1 unless 16 & XXX
728 1 1 if 8 & XXX
732 0 1 if not $timeout
739 4 6 if defined $_nvmctrl
741 0 6 unless defined $_nvm_version
745 3 3 if $_nvm_version == 0
749 3 0 if $_nvm_version == 2
879 11 2 unless 1 & XXX
931 1 1 if ($wordsize == 8) { }
1 0 elsif ($wordsize == 16) { }
1030 2 1 if length $data > 1
1032 2 1 if ($wordsize == 8) { }
1 0 elsif ($wordsize == 16) { }