blib/lib/Unicorn/Manager/Version.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 15 | 15 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 2 | 2 | 100.0 |
total | 22 | 22 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Unicorn::Manager::Version; | ||||||
2 | |||||||
3 | 1 | 1 | 5539 | use strict; | |||
1 | 3 | ||||||
1 | 33 | ||||||
4 | 1 | 1 | 6 | use warnings; | |||
1 | 1 | ||||||
1 | 23 | ||||||
5 | 1 | 1 | 765 | use version; | |||
1 | 2512 | ||||||
1 | 7 | ||||||
6 | |||||||
7 | sub new { | ||||||
8 | 1 | 1 | 1 | 10 | my $class = shift; | ||
9 | 1 | 3 | my $self = {}; | ||||
10 | 1 | 5 | return bless $self, $class; | ||||
11 | } | ||||||
12 | |||||||
13 | sub get { | ||||||
14 | 1 | 1 | 1 | 5 | my $self = shift; | ||
15 | 1 | 15 | my $VERSION = version->declare('0.06.09')->numify; | ||||
16 | 1 | 10 | return $VERSION; | ||||
17 | } | ||||||
18 | |||||||
19 | 1; | ||||||
20 | |||||||
21 | __END__ |