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 | 647 | use strict; | |||
1 | 1 | ||||||
1 | 40 | ||||||
3 | 1 | 1 | 4 | use warnings; | |||
1 | 1 | ||||||
1 | 28 | ||||||
4 | 1 | 1 | 4 | use FormValidator::Lite::Constraint; | |||
1 | 1 | ||||||
1 | 7 | ||||||
5 | 1 | 1 | 5 | use Email::Valid; | |||
1 | 1 | ||||||
1 | 31 | ||||||
6 | 1 | 1 | 4 | use Email::Valid::Loose; | |||
1 | 1 | ||||||
1 | 77 | ||||||
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__ |