Condition Coverage

blib/lib/Email/Valid.pm
Criterion Covered Total %
condition 29 58 50.0


and 3 conditions

line !l l&&!r l&&r condition
78 16 0 54 @params > 1 and $params[0] =~ /^-/
110 32 0 0 &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 1 2 0 $nmx == 1 and length $mx_entries[0]->exchange == 0
269 6 0 0 &blessed($addr) and $addr->isa("Mail::Address")
307 0 1 27 defined $localpart and length $localpart <= 64
315 0 0 25 $string and length $string <= 255
345 30 0 2 &blessed($addr) and $addr->isa("Mail::Address")
368 1 25 1 $args{'allow_ip'} && $addr->host =~ /\A\[ (?:[0-9]{1,3}\.){3}[0-9]{1,3} /x
372 1 1 25 not $ip_ok and $args{'fqdn'}
375 3 2 20 $domain_parts and $domain_parts > 1
379 1 21 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 29 $addr =~ /\P{ASCII}/ or not $addr =~ /^$RFC822PAT$/o
195 0 0 0 $^O eq "MSWin32" or $^O eq "Cygwin"
375 0 22 3 $ip_ok or $domain_parts and $domain_parts > 1