Condition Coverage

blib/lib/Sys/HostAddr.pm
Criterion Covered Total %
condition 21 63 33.3


and 3 conditions

line !l l&&!r l&&r condition
88 16 0 2 /^([a-z0-9]+(?::[0-9]+)?):?\s+/ and $^O ne 'MSWin32'
16 0 2 /^([a-z0-9]+(?::[0-9]+)?):?\s+/ and $^O ne 'MSWin32' and $^O ne 'cygwin'
125 16 0 2 $line =~ /^([a-z0-9]+(?::[0-9]+)?):?\s+/ and $^O ne 'MSWin32'
16 0 2 $line =~ /^([a-z0-9]+(?::[0-9]+)?):?\s+/ and $^O ne 'MSWin32' and $^O ne 'cygwin'
129 0 0 0 $$self{'ipv'} eq '6' and $line =~ m[(/\d{1,3})$]
197 4 0 0 $$self{'ipv'} eq '6' and $^O eq 'solaris'
208 0 0 0 $^O ne 'MSWin32' and $^O ne 'cygwin'
1 0 0 $method eq 'preferred' and ($^O ne 'MSWin32' and $^O ne 'cygwin')
282 1 0 0 ($^O eq 'MSWin32' || $^O eq 'cygwin') && $$self{'ipv'} eq '6'

or 2 conditions

line l !l condition
196 0 4 $getint || '-a'
206 0 1 shift() || 'auto'
290 4 0 shift() || die("get_stdout syntax error1\n")

or 3 conditions

line l !l&&r !l&&!r condition
99 0 0 1 shift() || $$self{'interface'}
119 0 0 1 shift() || $$self{'interface'}
162 0 0 1 shift() || $$self{'interface'}
188 0 0 4 shift() || $$self{'interface'}
191 0 0 4 $^O eq 'MSWin32' or $^O eq 'cygwin'
215 0 1 0 $method eq 'dns' or $method eq 'auto'
238 0 0 0 $method eq 'route' or $method eq 'auto'
265 0 0 0 $^O eq 'MSWin32' or $^O eq 'cygwin'
266 0 0 0 $method eq 'preferred' or $method eq 'auto'
282 0 0 1 $^O eq 'MSWin32' || $^O eq 'cygwin'