| 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.0.1'; | ||||||
| 4 | 2 | 2 | 252149 | use Moo; | |||
| 2 | 10752 | ||||||
| 2 | 16 | ||||||
| 5 | use CLI::Osprey | ||||||
| 6 | 2 | 2 | 2700 | desc => 'Display version of Dancer2'; | |||
| 2 | 38629 | ||||||
| 2 | 27 | ||||||
| 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__ |