| blib/lib/Crypt/XkcdPassword/Words/IT.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 7 | 7 | 100.0 |
| branch | 2 | 4 | 50.0 |
| condition | n/a | ||
| subroutine | 2 | 2 | 100.0 |
| pod | 0 | 1 | 0.0 |
| total | 11 | 14 | 78.5 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Crypt::XkcdPassword::Words::IT; | ||||||
| 2 | BEGIN { | ||||||
| 3 | 1 | 1 | 1455 | $Crypt::XkcdPassword::Words::IT::AUTHORITY = 'cpan:TOBYINK'; | |||
| 4 | 1 | 83 | $Crypt::XkcdPassword::Words::IT::VERSION = '0.005'; | ||||
| 5 | } | ||||||
| 6 | my @words; | ||||||
| 7 | sub words | ||||||
| 8 | { | ||||||
| 9 | 1 | 50 | 1 | 0 | 5 | unless (@words) | |
| 10 | { | ||||||
| 11 | 1 | 6 | while () | ||||
| 12 | { | ||||||
| 13 | 20000 | 17341 | chomp; | ||||
| 14 | 20000 | 50 | 60155 | push @words, $_ if length; | |||
| 15 | } | ||||||
| 16 | } | ||||||
| 17 | |||||||
| 18 | \@words | ||||||
| 19 | 1 | 15 | } | ||||
| 20 | __PACKAGE__ | ||||||
| 21 | __DATA__ |