blib/lib/Dancer2/CLI/Version.pm

filter: Statementstmt 80.0% 8 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 1 totaltotal 71.4% 10 / 14 CC 1 SCAR 2.9
CC
1
Cov
80%
run
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/Dancer2/Core/Response/Delayed.pm ↑ Summary blib/lib/Dancer2/CLI.pm »
1 package Dancer2::CLI::Version;
2 # ABSTRACT: Display Dancer2 version
3 6 $Dancer2::CLI::Version::VERSION = '2.2.1';
4 6 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 use CLI::Osprey
6 6 ▶ desc => 'Display version of Dancer2';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 sub run {
9 0 ▶ my $self = shift;
Subroutine run: not called CC=1 SCAR=6.9
Pod undocumented
10 0 print "Dancer2 " . $self->parent_command->_dancer2_version, "\n";
11 }
12  
13 6 1;
14  
15 __END__
« blib/lib/Dancer2/Core/Response/Delayed.pm ↑ Summary blib/lib/Dancer2/CLI.pm »