Branch Coverage

blib/lib/Ph.pm
Criterion Covered Total %
branch 20 56 35.7


line true false branch
67 0 4 unless (defined $PhServer)
71 0 4 unless (defined $PhPort)
80 4 0 unless (defined $sock)
97 0 0 unless ($self->_IsSuccessful($code))
123 0 1 if (defined $$self{'sock'})
200 0 2 if (defined $result{$name}) { }
216 0 0 if ($flag =~ /^\d+$/) { }
0 0 elsif ($flag eq 'max') { }
231 0 2 $self->_IsSuccessful($code) ? :
259 7 0 if (not defined $sock) { }
268 0 7 unless (defined $response)
274 0 7 if $$self{'Debug'}
307 1 0 if $code != 301
342 1 1 if (ref $fields eq 'HASH') { }
1 0 elsif (ref $fields eq 'ARRAY') { }
385 0 2 if (defined $fieldlist)
397 0 2 if (defined $response[3])
400 0 0 length $response[2] ? :
404 0 0 unless (defined $matches[$index])
409 0 0 if (not defined $matches[$index]{$field}) { }
421 0 2 $self->_IsSuccessful($code) ? :
429 7 0 if (not defined $sock) { }
0 0 elsif (print $sock "$request\r\n") { }
431 0 7 if $$self{'Debug'}
435 0 0 if $$self{'Debug'}
439 0 0 if $$self{'Debug'}
453 0 2 if ($response[2])
460 0 2 $self->_IsSuccessful($code) ? :