Branch Coverage

blib/lib/Crypt/Password/StretchedHash.pm
Criterion Covered Total %
branch 18 22 81.8


line true false branch
40 1 28 unless $params{'hash'}->isa('Digest::SHA') or $params{'hash'}->isa('Digest::SHA3')
46 1 27 unless $params{'stretch_count'} > 0
55 4 23 if (exists $params{'format'} and $params{'format'} eq 'hex') { }
14 18 elsif (exists $params{'format'} and $params{'format'} eq 'base64') { }
92 0 7 unless $hash_info->isa('Crypt::Password::StretchedHash::HashInfo')
105 1 6 if ($hash_info->format eq 'hex') { }
6 0 elsif ($hash_info->format eq 'base64') { }
131 0 11 unless $hash_info->isa('Crypt::Password::StretchedHash::HashInfo')
140 6 5 if ($params{'password_hash'} =~ /\A$delimiter/ and scalar @split_password_hash == 4 and $split_password_hash[0] eq '' and $identifier eq $split_password_hash[1]) { }
151 1 5 if ($hash_info->format eq 'hex') { }
5 0 elsif ($hash_info->format eq 'base64') { }