Branch Coverage

blib/lib/Authen/Passphrase/MD5Crypt.pm
Criterion Covered Total %
branch 21 34 61.7


line true false branch
139 8 10 if ($attr eq 'salt') { }
1 9 elsif ($attr eq 'salt_random') { }
7 2 elsif ($attr eq 'hash_base64') { }
2 0 elsif ($attr eq 'passphrase') { }
140 0 8 if exists $$self{'salt'}
142 0 8 unless $value =~ /\A[\x00-\xff]*\z/
146 0 1 if exists $$self{'salt'}
154 0 7 if exists $$self{'hash_base64'} or defined $passphrase
157 0 7 unless $value =~ m[\A[./0-9A-Za-z]{21}[./01]\z]
162 0 2 if exists $$self{'hash_base64'} or defined $passphrase
170 0 9 unless exists $$self{'salt'}
171 2 7 if defined $passphrase
173 0 9 unless exists $$self{'hash_base64'}
189 2 0 if ($passwd =~ /\A\$1\$/)
190 0 2 unless $passwd =~ m[\A\$1\$([!-#%-9;-~]{0,8})\$([./0-9A-Za-z]{22})\z]
247 0 28 if $$self{'salt'} =~ /[^\!-\#\%-9\;-\~]/ or length $$self{'salt'} > 8
263 0 10 if $$self{'salt'} =~ /[^\!-\#\%-9\;-\~]/ or length $$self{'salt'} > 8