Branch Coverage

blib/lib/Crypt/SaltedHash.pm
Criterion Covered Total %
branch 18 24 75.0


line true false branch
205 0 9 if $options{'algorithm'} =~ /SHA$/
252 6 4 $self->{'salt'} =~ /^HEX\{(.*)\}$/i ? :
266 0 0 $self->{'salt'} =~ /^HEX\{(.*)\}$/i ? :
306 3 1 if $scheme
347 1 8 if $parts[-1] eq 1
360 3 1 if ($algorithm =~ /^S(.*)$/)
364 3 0 if ($algorithm =~ /([a-zA-Z]+)([0-9]+)/)
372 0 3 if $name =~ /^HMAC(.*)$/
373 0 3 unless $name =~ /MD$/
385 1 3 unless $_[0] =~ /{([^}]*)/
391 1 7 unless $_[0] =~ /}(.*)/
417 1 3 if $res