File Coverage

blib/lib/Dancer2/CLI/Version.pm
Criterion Covered Total %
statement 6 8 75.0
branch n/a
condition n/a
subroutine 2 3 66.6
pod 0 1 0.0
total 8 12 66.6


line stmt bran cond sub pod time code
1             package Dancer2::CLI::Version;
2             # ABSTRACT: Display Dancer2 version
3             $Dancer2::CLI::Version::VERSION = '2.1.0';
4 2     2   348497 use Moo;
  2         12353  
  2         31  
5             use CLI::Osprey
6 2     2   3203 desc => 'Display version of Dancer2';
  2         55277  
  2         17  
7              
8             sub run {
9 0     0 0   my $self = shift;
10 0           print "Dancer2 " . $self->parent_command->_dancer2_version, "\n";
11             }
12              
13             1;
14              
15             __END__