Condition Coverage

blib/lib/Email/Valid.pm
Criterion Covered Total %
condition 28 58 48.2


and 3 conditions

line !l l&&!r l&&r condition
78 12 0 46 @params > 1 and $params[0] =~ /^-/
110 28 0 0 builtin::blessed($addr) and $addr->isa("Mail::Address")
125 0 0 0 $^O eq "MSWin32" and -x "$file.exe"
0 0 0 $^O eq "MSWin32" and -x "$file.exe" and not -d _
126 0 0 0 -x $file and not -d _
153 2 0 0 $nmx == 1 and $mx_entries[0]->exchange eq "."
269 2 0 0 builtin::blessed($addr) and $addr->isa("Mail::Address")
307 0 1 23 defined $localpart and length $localpart <= 64
315 0 0 21 $string and length $string <= 255
345 26 0 2 builtin::blessed($addr) and $addr->isa("Mail::Address")
368 1 21 1 $args{'allow_ip'} && $addr->host =~ /\A\[
372 1 1 21 not $ip_ok and $args{'fqdn'}
375 3 2 16 $domain_parts and $domain_parts > 1
379 1 17 0 not $ip_ok and $args{'tldcheck'}

or 2 conditions

line l !l condition
234 0 0 $args{'address'} || (return $self->details('tld'))
394 1 0 ref $self || die("$self is not an object")

or 3 conditions

line l !l&&r !l&&!r condition
48 0 1 0 ref $class || $class
112 2 1 25 $addr =~ /\P{ASCII}/ or not $addr =~ /^$RFC822PAT$/o
195 0 0 0 $^O eq "MSWin32" or $^O eq "Cygwin"
375 0 18 3 $ip_ok or $domain_parts and $domain_parts > 1