blib/lib/FormValidator/Lite/Constraint/Email.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 15 | 15 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | n/a | ||
total | 20 | 20 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package FormValidator::Lite::Constraint::Email; | ||||||
2 | 1 | 1 | 591 | use strict; | |||
1 | 2 | ||||||
1 | 21 | ||||||
3 | 1 | 1 | 4 | use warnings; | |||
1 | 2 | ||||||
1 | 23 | ||||||
4 | 1 | 1 | 4 | use FormValidator::Lite::Constraint; | |||
1 | 1 | ||||||
1 | 17 | ||||||
5 | 1 | 1 | 5 | use Email::Valid; | |||
1 | 1 | ||||||
1 | 19 | ||||||
6 | 1 | 1 | 4 | use Email::Valid::Loose; | |||
1 | 2 | ||||||
1 | 72 | ||||||
7 | |||||||
8 | rule 'EMAIL' => sub { | ||||||
9 | Email::Valid->address($_); | ||||||
10 | }; | ||||||
11 | |||||||
12 | rule 'EMAIL_LOOSE' => sub { | ||||||
13 | Email::Valid::Loose->address($_); | ||||||
14 | }; | ||||||
15 | |||||||
16 | 1; | ||||||
17 | __END__ |