Branch Coverage

blib/lib/Net/Prober/Probe/HTTP.pm
Criterion Covered Total %
branch 25 46 54.3


line true false branch
53 4 0 if (defined $scheme)
54 4 0 if ($scheme eq 'http') { }
0 0 elsif ($scheme eq 'https') { }
62 4 0 if (defined $port)
63 0 4 $port == 443 ? :
71 1 3 if ($port != 80 and $port != 443)
77 1 3 if ($headers and ref $headers eq 'ARRAY')
83 0 4 if ($body)
100 3 0 if (defined $timeout and $timeout > 0)
116 0 3 if (not $up_status_re && defined $status && $status) { }
3 0 elsif ($up_status_re and defined $status) { }
118 0 0 unless ($good)
126 0 3 unless (eval { do { $match_re = qr/$up_status_re/ms } })
130 0 3 unless ($good)
135 1 2 if ($good and defined $expected_md5)
137 0 1 if ($md5 ne $expected_md5)
143 1 2 if ($good and defined $content_match)
147 0 1 unless (eval { do { $match_re = qr/$content_match/ms } })
150 0 1 unless ($content =~ /$match_re/ms)
162 3 0 $content ? :
166 3 0 if $md5
167 0 3 if defined $reason
169 3 0 if ($good)