Branch Coverage

blib/lib/HealthCheck/Diagnostic/WebRequest.pm
Criterion Covered Total %
branch 34 42 80.9


line true false branch
20 0 15 @params == 1 && (ref $params[0] || '') eq 'HASH' ? :
37 0 15 if @bad_params
41 0 0 unless $params{'url'} or $params{'request'} and &blessed($params{'request'}) and $params{'request'}->isa('HTTP::Request')
43 0 15 if $params{'url'} and $params{'request'}
52 0 17 unless defined $code
54 3 14 if defined $op and $op eq '!'
56 7 10 if ($op) { }
59 6 9 if @and
77 1 20 unless ref $self
86 0 20 if $self->{'no_follow_redirects'}
92 10 10 if $results[0]{'status'} eq 'OK'
114 0 20 if $@
116 11 9 $success ? :
119 1 19 if $proxy_error
123 10 10 $status eq 'OK' ? :
126 1 19 if $proxy_error
127 9 11 unless $status eq 'OK' or $proxy_error
130 2 18 if ($client_warning and $client_warning eq 'Internal response')
141 6 4 unless $self->{'content_regex'}
145 2 2 $content =~ /$regex/ ? :
146 2 2 $status eq 'OK' ? :