Branch Coverage

blib/lib/HTML/CheckArgs/email.pm
Criterion Covered Total %
branch 20 22 90.9


line true false branch
22 1 12 if ($$config{'required'} and not $value) { }
1 11 elsif (not $$config{'required'} || $value) { }
34 2 9 unless ('Email::Valid'->address($value))
42 0 9 if (length $value > 255)
50 4 5 if ($$config{'params'}{'no_admin_addr'})
51 1 3 if ($value =~ /(^root@|^webmaster@|^postmaster@|^listmaster@|^hostmaster@|^abuse@)/)
58 3 5 if ($$config{'params'}{'no_gov_addr'})
59 1 2 if ($value =~ /\.gov$/)
66 2 5 if (exists $$config{'params'}{'banned_domains'})
67 1 1 if (grep {$value =~ /$_$/;} @{$$config{'params'}{'banned_domains'};})
75 6 0 unless ($$config{'noclean'})