blib/lib/Mojolicious/Command/bcrypt.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 16 | 16 | 100.0 |
line | true | false | branch |
---|---|---|---|
15 | 2 | 66 | unless defined $password |
17 | 9 | 57 | unless Mojo::Util::getopt(\@args, 'c|cost=i', \my $cost, 'nkn|no-key-nul', \my $no_key_nul, 's|salt=s', \my $salt) |
23 | 1 | 56 | if @args |
25 | 50 | 6 | if (grep defined($_), $cost, $no_key_nul, $salt) { } |
26 | 22 | 28 | if (defined $cost) { } |
27 | 6 | 16 | unless defined $cost and $cost =~ /^\d{1,2}$/ and $cost > 0 |
32 | 18 | 26 | unless ($salt) |
36 | 14 | 30 | $no_key_nul ? : |