Condition Coverage

blib/lib/Email/Valid.pm
Criterion Covered Total %
condition 24 55 43.6


and 3 conditions

line !l l&&!r l&&r condition
78 15 0 52 @params > 1 and $params[0] =~ /^-/
110 31 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 _
264 5 0 0 &blessed($addr) and $addr->isa('Mail::Address')
302 0 1 26 defined $localpart and length $localpart <= 64
310 0 0 24 $string and length $string <= 255
340 29 0 2 &blessed($addr) and $addr->isa('Mail::Address')
363 1 24 1 $args{'allow_ip'} && $addr->host =~ /\A\[ (?:[0-9]{1,3}\.){3}[0-9]{1,3} /x
367 1 25 0 not $ip_ok and $args{'fqdn'}
370 3 2 19 $domain_parts and $domain_parts > 1
374 1 20 0 not $ip_ok and $args{'tldcheck'}

or 2 conditions

line l !l condition
229 0 0 $args{'address'} || (return $self->details('tld'))
389 0 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 28 $addr =~ /\P{ASCII}/ or not $addr =~ /^$RFC822PAT$/o
190 0 0 0 $^O eq 'MSWin32' or $^O eq 'Cygwin'
370 0 0 24 $ip_ok or $domain_parts and $domain_parts > 1