Branch Coverage

blib/lib/API/Plesk.pm
Criterion Covered Total %
branch 20 44 45.4


line true false branch
59 17 0 unless ($$self{'secret_key'})
60 0 17 unless $$self{'username'}
61 0 17 unless $$self{'password'}
63 0 17 unless $$self{'url'}
72 0 1 unless $data and ref $data
78 0 1 if $$self{'debug'}
82 0 1 if $$self{'debug'}
84 1 0 unless ($error)
103 0 0 if utf8::is_utf8($xml)
108 0 0 if ($$self{'secret_key'}) { }
118 0 0 if $ua->can('ssl_opts')
120 0 0 if defined $$self{'debug'} and $$self{'debug'} > 1
129 0 0 if defined $$self{'debug'} and $$self{'debug'} > 1
131 0 0 if not $res or $@ or ref $res and $res->status_line =~ /connection timeout/
134 0 0 $res->is_success ? :
155 1 19 unless ref $hash
161 3 17 if (ref $value eq 'HASH') { }
4 13 elsif (ref $value eq 'ARRAY') { }
2 11 elsif (ref $value eq 'CODE') { }
173 2 18 if (not defined $value or $value eq '') { }
217 14 0 if ($version >= $$item[0])
226 0 14 if ($@)