Branch Coverage

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


line true false branch
15 2 20 if not defined $value or $value eq ''
16 4 16 if ref $value
18 10 6 unless 'Email::Valid'->address($value)
29 2 10 if not defined $value or $value eq ''
30 4 6 if ref $value
32 3 3 unless $value eq $params->{$field}
41 2 10 if not defined $value or $value eq ''
42 4 6 if ref $value
46 3 3 unless lc($value) =~ /^$Validator::LIVR::Rules::Special::RE{'URI'}{'HTTP'}{join $;, -'scheme', 'https?'}$/
55 2 12 if not defined $value or $value eq ''
56 4 8 if ref $value
64 7 1 if ($value =~ /$iso_date_re/x)
66 1 6 if not $date or $@
68 5 1 if ($date->year == $+{'year'} and $date->mon == $+{'month'} and $date->mday == $+{'day'})