Branch Coverage

blib/lib/Authen/Passphrase/LANManagerHalf.pm
Criterion Covered Total %
branch 16 26 61.5


line true false branch
105 17 9 if ($attr eq 'hash') { }
4 5 elsif ($attr eq 'hash_hex') { }
5 0 elsif ($attr eq 'passphrase') { }
106 0 17 if exists $$self{'hash'} or defined $passphrase
109 0 17 unless $value =~ /\A[\x00-\xff]{8}\z/
113 0 4 if exists $$self{'hash'} or defined $passphrase
116 0 4 unless $value =~ /\A[0-9A-Fa-f]{16}\z/
121 0 5 if exists $$self{'hash'} or defined $passphrase
124 0 5 unless $self->_passphrase_acceptable($value)
132 5 21 if defined $passphrase
133 0 26 unless exists $$self{'hash'}
147 2 0 if ($passwd =~ /\A\$LM\$/)
148 0 2 unless $passwd =~ /\A\$LM\$([0-9a-f]{16})\z/