Branch Coverage

blib/lib/Net/Prober/Probe/HTTP.pm
Criterion Covered Total %
branch 23 46 50.0


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