Branch Coverage

blib/lib/Test/Net/Connect.pm
Criterion Covered Total %
branch 0 46 0.0


line true false branch
133 0 0 unless _check_spec($spec, $test_name)
135 0 0 unless defined $test_name
137 0 0 unless _dns_lookup($spec, $test_name)
148 0 0 if (not defined $sock) { }
157 0 0 if (@diag)
181 0 0 unless _check_spec($spec, $test_name)
183 0 0 unless defined $test_name
185 0 0 unless _dns_lookup($spec, $test_name)
196 0 0 if (defined $sock)
204 0 0 if (@diag)
219 0 0 unless (defined $spec)
225 0 0 if (ref $spec ne 'HASH')
226 0 0 defined $test_name ? :
232 0 0 if (not exists $$spec{'host'} && defined $$spec{'host'} or $$spec{'host'} =~ /^\s*$/)
234 0 0 defined $test_name ? :
242 0 0 if ($$spec{'host'} =~ /:/)
246 0 0 if (not defined $$spec{'port'} or $$spec{'port'} =~ /^\s*$/)
247 0 0 defined $test_name ? :
253 0 0 unless (defined $test_name)
260 0 0 unless (exists $FIELDS{$field})
265 0 0 if (@diag)
281 0 0 if ($$spec{'host'} =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/) { }
286 0 0 if ($h) { }