Branch Coverage

blib/lib/WebService/Validator/HTML/W3C.pm
Criterion Covered Total %
branch 19 72 26.3


line true false branch
120 4 10 $args{'detailed'} ? :
158 0 0 unless $file
168 0 0 unless $markup
178 1 2 if (scalar @_ > 1) { }
181 0 1 if ($opts{'uri'}) { }
0 1 elsif ($opts{'string'}) { }
0 1 elsif ($opts{'file'}) { }
194 1 1 unless $uri
197 1 0 unless $uri =~ m[^.*?://]
212 0 0 unless ($ua)
216 0 0 if ($self->proxy)
223 0 0 if ($response->is_success) { }
231 0 0 unless $self->_http_method =~ /HEAD/
237 0 0 if ($res) { }
312 1 0 unless $self->num_errors
314 0 0 unless ($self->_http_method eq 'GET')
323 0 0 if ($@)
330 0 0 if ($self->_output eq 'xml') { }
331 0 0 unless ($xp->findnodes('/result'))
346 0 0 unless ($xp->findnodes('/env:Envelope'))
360 0 0 if ($xp->find('./m:source'))
382 0 0 unless ($self->_http_method eq 'GET')
390 0 0 if ($@)
399 0 0 if ($self->_output eq 'soap12') { }
400 0 0 unless ($xp->findnodes('/env:Envelope'))
408 0 0 if (($line = $xp->findvalue('./m:line', $msg)) eq '')
412 0 0 if (($col = $xp->findvalue('./m:col', $msg)) eq '')
424 0 0 if ($xp->find('./m:source'))
497 3 3 if (defined $validator_error)
543 2 1 if $valid_err_num
545 2 1 if ($valid and $valid_err_num) { }
0 1 elsif (not defined $valid) { }
1 0 elsif ($valid =~ /\bvalid\b/i) { }
567 0 0 if (ref $uri) { }
568 0 0 if ($$uri{'file'}) { }
0 0 elsif ($$uri{'markup'}) { }