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 | 573 | use strict; | |||
1 | 2 | ||||||
1 | 24 | ||||||
3 | 1 | 1 | 3 | use warnings; | |||
1 | 1 | ||||||
1 | 20 | ||||||
4 | 1 | 1 | 3 | use FormValidator::Lite::Constraint; | |||
1 | 1 | ||||||
1 | 5 | ||||||
5 | 1 | 1 | 3 | use Email::Valid; | |||
1 | 1 | ||||||
1 | 15 | ||||||
6 | 1 | 1 | 3 | use Email::Valid::Loose; | |||
1 | 1 | ||||||
1 | 59 | ||||||
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__ |