Branch Coverage

blib/lib/Validator/LIVR/Rules/Special.pm
Criterion Covered Total %
branch 20 20 100.0


line true false branch
15 2 6 if not defined $value or $value eq ''
17 3 3 unless 'Email::Valid'->address($value)
28 2 6 if not defined $value or $value eq ''
30 3 3 unless $value eq $$params{$field}
39 2 6 if not defined $value or $value eq ''
43 3 3 unless lc($value) =~ /^$Validator::LIVR::Rules::Special::RE{'URI'}{'HTTP'}{join $;, -'scheme', 'https?'}$/
52 2 6 if not defined $value or $value eq ''
60 5 1 if ($value =~ /$iso_date_re/)
62 1 4 if not $date or $@
64 3 1 if ($date->year == $+{'year'} and $date->mon == $+{'month'} and $date->mday == $+{'day'})