line |
true |
false |
branch |
50
|
4 |
0 |
if (defined $scheme) |
51
|
4 |
0 |
if ($scheme eq 'http') { } |
|
0 |
0 |
elsif ($scheme eq 'https') { } |
59
|
4 |
0 |
if (defined $port) |
60
|
0 |
4 |
$port == 443 ? : |
68
|
1 |
3 |
if ($port != 80 and $port != 443) |
74
|
1 |
3 |
if ($headers and ref $headers eq 'ARRAY') |
80
|
0 |
4 |
if ($body) |
97
|
3 |
0 |
if (defined $timeout and $timeout > 0) |
113
|
0 |
3 |
if (not $up_status_re && defined $status && $status) { } |
|
3 |
0 |
elsif ($up_status_re and defined $status) { } |
115
|
0 |
0 |
unless ($good) |
123
|
0 |
3 |
unless (eval {
do {
$match_re = qr/$up_status_re/ms
}
}) |
127
|
0 |
3 |
unless ($good) |
132
|
0 |
3 |
if ($good and defined $expected_md5) |
134
|
0 |
0 |
if ($md5 ne $expected_md5) |
140
|
2 |
1 |
if ($good and defined $content_match) |
144
|
0 |
2 |
unless (eval {
do {
$match_re = qr/$content_match/ms
}
}) |
147
|
0 |
2 |
unless ($content =~ /$match_re/ms) |
159
|
3 |
0 |
$content ? : |
163
|
3 |
0 |
if $md5 |
164
|
0 |
3 |
if defined $reason |
166
|
3 |
0 |
if ($good) |