Branch Coverage

blib/lib/API/Plesk.pm
Criterion Covered Total %
branch 15 40 37.5


line true false branch
56 0 15 unless $self->{'username'}
57 0 15 unless $self->{'password'}
58 0 15 unless $self->{'url'}
67 0 0 unless $data and ref $data
73 0 0 if $self->{'debug'}
77 0 0 if $self->{'debug'}
79 0 0 unless ($error)
98 0 0 if utf8::is_utf8($xml)
109 0 0 if $ua->can('ssl_opts')
111 0 0 if $self->{'debug'} > 1
120 0 0 if $self->{'debug'} > 1
122 0 0 if not $res or $@ or ref $res and $res->status_line =~ /connection timeout/
125 0 0 $res->is_success ? :
146 1 11 unless ref $hash
152 3 11 if (ref $value eq 'HASH') { }
2 9 elsif (ref $value eq 'ARRAY') { }
2 7 elsif (ref $value eq 'CODE') { }
164 2 12 if (not defined $value or $value eq '') { }
208 12 0 if ($version >= $item->[0])
217 0 12 if ($@)