Branch Coverage

blib/lib/Authen/Passphrase/Argon2.pm
Criterion Covered Total %
branch 42 42 100.0


line true false branch
27 1 15 if "$_[0]" eq 'random'
28 3 13 unless $_[0] =~ /\A[\x00-\xff]{6}.*\z/u
46 4 11 unless $_[0] =~ /^ \$argon2id \$v=\d+ \$m=(?\d+), t=(?\d+), p=(?\d+) \$ /ax
68 1 21 scalar @_ == 1 ? :
72 6 16 if $args{'passphrase'}
77 6 1 !$self->{'salt'} ? :
7 80 exists $args{$_} ? :
80 1 62 if (exists $args{"stored_$_"})
91 5 16 if ($args{'crypt'}) { }
95 2 1 !$self->{'crypt'} ? :
3 45 exists $args{$_} ? :
117 1 1 unless $rfc2307 =~ /^{ARGON2}(.*)$/u
125 7 9 if defined $val
152 7 9 if $val
158 2 1 $val ? :
163 2 1 $val ? :
168 2 6 $val ? :
173 3 2 $val ? :
178 3 2 $val ? :
183 9 4 if $pass =~ /\$argon2/u
184 1 16 !$$self{$_->[0]} ? :