blib/lib/Data/ShortNameProvider/Role/Style.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 3 | 4 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 1 | 2 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 5 | 7 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Data::ShortNameProvider::Role::Style; | ||||||
2 | $Data::ShortNameProvider::Role::Style::VERSION = '1.001'; | ||||||
3 | 1 | 1 | 5631 | use Moo::Role; | |||
1 | 3 | ||||||
1 | 4 | ||||||
4 | |||||||
5 | requires | ||||||
6 | 'generate_name', | ||||||
7 | 'parse_generated_name', | ||||||
8 | ; | ||||||
9 | |||||||
10 | has timestamp_epoch => ( | ||||||
11 | is => 'ro', | ||||||
12 | default => sub { time }, | ||||||
13 | ); | ||||||
14 | |||||||
15 | sub is_generated_name { | ||||||
16 | # uncoverable subroutine | ||||||
17 | # uncoverable statement | ||||||
18 | 0 | 0 | 1 | !!shift->parse_generated_name(shift); | |||
19 | } | ||||||
20 | |||||||
21 | 1; | ||||||
22 | |||||||
23 | __END__ |