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/CLI.pm ↑ Summary lib/Dancer2/Session/Simple.pm »
1 package Dancer2::CLI::Version;
2 # ABSTRACT: Display Dancer2 version
3 8 $Dancer2::CLI::Version::VERSION = '2.3.0';
4 8 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 use CLI::Osprey
6 8 ▶ desc => 'Display version of Dancer2';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 0 ▶sub run {
Subroutine run: not called CC=1 SCAR=6.9
Pod undocumented
9 0 my $self = shift;
10 0 print "Dancer2 " . $self->parent_command->_dancer2_version, "\n";
11 }
12  
13 8 1;
14  
15 __END__
« blib/lib/Dancer2/CLI.pm ↑ Summary lib/Dancer2/Session/Simple.pm »