| blib/lib/Text/Keywords/List.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 5 | 7 | 71.4 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 3 | 4 | 75.0 |
| pod | 0 | 1 | 0.0 |
| total | 8 | 12 | 66.6 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Text::Keywords::List; | ||||||
| 2 | BEGIN { | ||||||
| 3 | 1 | 1 | 1621 | $Text::Keywords::List::AUTHORITY = 'cpan:GETTY'; | |||
| 4 | } | ||||||
| 5 | BEGIN { | ||||||
| 6 | 1 | 1 | 19 | $Text::Keywords::List::VERSION = '0.900'; | |||
| 7 | } | ||||||
| 8 | # ABSTRACT: Primitive keywords List class | ||||||
| 9 | |||||||
| 10 | 1 | 1 | 9 | use Moo; | |||
| 1 | 2 | ||||||
| 1 | 6 | ||||||
| 11 | |||||||
| 12 | has keywords => ( | ||||||
| 13 | is => 'ro', | ||||||
| 14 | default => sub {[]}, | ||||||
| 15 | ); | ||||||
| 16 | |||||||
| 17 | sub count { | ||||||
| 18 | 0 | 0 | 0 | scalar @{shift->keywords}; | |||
| 0 | |||||||
| 19 | } | ||||||
| 20 | |||||||
| 21 | 1; | ||||||
| 22 | __END__ |