Branch Coverage

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


line true false branch
203 0 9 if $options{'algorithm'} =~ /SHA$/
250 6 4 $self->{'salt'} =~ /^HEX\{(.*)\}$/i ? :
264 0 0 $self->{'salt'} =~ /^HEX\{(.*)\}$/i ? :
304 3 1 if $scheme
345 1 8 if $parts[-1] eq 1
358 3 1 if ($algorithm =~ /^S(.*)$/)
362 3 0 if ($algorithm =~ /([a-zA-Z]+)([0-9]+)/)
370 0 3 if $name =~ /^HMAC(.*)$/
371 0 3 unless $name =~ /MD$/
383 1 3 unless $_[0] =~ /{([^}]*)/
389 1 7 unless $_[0] =~ /}(.*)/
415 1 3 if $res