Branch Coverage

blib/lib/Dancer2/Plugin/Passphrase/Core.pm
Criterion Covered Total %
branch 25 32 78.1


line true false branch
35 0 98 @args == 1 ? :
46 24 2 if ($options)
51 0 24 defined $options->{$algorithm} ? :
58 26 0 unless defined $settings->{'salt'}
63 26 0 if $settings->{'salt'}
65 0 26 if ($settings->{'scheme'} eq 'SHA1') { }
6 20 elsif ($settings->{'scheme'} eq 'SSHA1') { }
72 5 21 if ($algorithm eq 'Bcrypt')
76 0 5 defined $settings->{'cost'} ? :
77 0 5 if $settings->{'cost'} > 31
112 1 68 unless ($scheme and $rfc_settings)
116 39 29 if ($scheme eq 'CRYPT')
117 38 1 if ($rfc_settings =~ /^\$2(?:a|x|y)\$/) { }
147 29 38 unless (defined $settings->{'salt'})
162 43 50 if ($settings->{'algorithm'} eq 'Bcrypt') { }
216 53 14 $new_hash eq $stored_hash ? :