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)
320 0 110 length $buf >= length $write ? :
335 0 110 if $got ne $exp
344 14 15 $_nvm_version >= 2 ? :
351 6 39 if ($_reg_ctrla & 8) { }
357 0 39 unless $ack eq "\@"
363 5 5 $_nvm_version >= 2 ? :
399 0 5 if $chunklen > 256
402 5 0 if $chunklen > 1
422 2 1 if $len > 1
428 2 1 if ($_reg_ctrla & 8) { }
448 2 0 if $len > 1
454 2 0 if ($_reg_ctrla & 8) { }
463 2 0 if (length($data) % 2)
492 0 2 unless length $key == 8
503 4 5 $on ? :
505 8 1 if $_reg_ctrla != $val
535 0 1 unless $sib->{'nvm_version'} =~ /^P:(\d)/u
663 0 1 unless 8 & XXX
665 0 1 if $opts{'no_reset'}
672 1 1 unless 1 & XXX
676 0 1 if not $timeout
691 0 1 unless 16 & XXX
698 1 1 if 8 & XXX
702 0 1 if not $timeout
709 4 6 if defined $_nvmctrl
711 0 6 unless defined $_nvm_version
715 3 3 if $_nvm_version == 0
719 3 0 if $_nvm_version == 2
835 11 2 unless 1 & XXX
883 1 1 if ($wordsize == 8) { }
1 0 elsif ($wordsize == 16) { }
971 2 1 if length $data > 1
973 2 1 if ($wordsize == 8) { }
1 0 elsif ($wordsize == 16) { }