Command/passphrase.pm

filter: Statementstmt 76.4% 13 / 17 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 100% 1 / 1 totaltotal 68.0% 17 / 25 CC 2 SCAR 9.9
CC
2
Cov
68%
run
6.0
__ANON__
1.1
BEGIN
1.0
CRAP 2.7
↑ Summary Plugin/Passphrase.pm »
1 package Mojolicious::Command::passphrase;
2 1 $Mojolicious::Command::passphrase::VERSION = '0.003';
3 1 ▶use Mojo::Base 'Mojolicious::Command';
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Crypt::Passphrase;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Mojo::Util ();
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 has description => 'hash a password using the settings in your Mojolicious app.';
8  
9 0 ▶has usage => sub { shift->extract_usage };
Subroutine __ANON__: not called CC=1 SCAR=1.2
10  
11 0 ▶sub run {
Subroutine run: not called CC=2 SCAR=17.9
Pod documented
12 0 my ($self, $password, @args) = @_;
13 0 ▶ die $self->usage unless defined $password;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $password 0 0 0
14  
15 0 say $self->app->hash_password($password);
16 }
17  
18 1 1;
19  
20 __END__
↑ Summary Plugin/Passphrase.pm »