Branch Coverage

blib/lib/Authen/Passphrase/NTHash.pm
Criterion Covered Total %
branch 21 32 65.6


line true false branch
95 2 8 if ($attr eq 'hash') { }
7 1 elsif ($attr eq 'hash_hex') { }
1 0 elsif ($attr eq 'passphrase') { }
96 0 2 if exists $$self{'hash'} or defined $passphrase
99 0 2 unless $value =~ /\A[\x00-\xff]{16}\z/
103 0 7 if exists $$self{'hash'} or defined $passphrase
106 0 7 unless $value =~ /\A[0-9A-Fa-f]{32}\z/
111 0 1 if exists $$self{'hash'} or defined $passphrase
119 1 9 if defined $passphrase
120 0 10 unless exists $$self{'hash'}
136 2 1 if ($passwd =~ /\A\$3\$/) { }
1 0 elsif ($passwd =~ /\A\$NT\$/) { }
137 0 2 unless $passwd =~ /\A\$3\$\$([0-9a-f]{32})\z/
142 0 1 unless $passwd =~ /\A\$NT\$([0-9a-f]{32})\z/
162 1 1 if ($userpassword =~ /\A\{(?i:msnt)\}/)
163 0 1 unless $userpassword =~ /\A\{.*?\}([0-9a-fA-F]{32})\z/