Branch Coverage

blib/lib/Net/Proxmox/VE.pm
Criterion Covered Total %
branch 0 92 0.0


line true false branch
30 0 0 unless my $self = shift()
33 0 0 unless (%params)
36 0 0 unless $params{'path'}
44 0 0 unless $params{'method'} =~ /^(GET|PUT|POST|DELETE)$/
52 0 0 unless ($params{'path'} eq "access/domains" or $self->check_login_ticket)
56 0 0 if $self->{'params'}{'debug'}
57 0 0 unless $self->login
69 0 0 if defined $self->{'ticket'}
75 0 0 unless ($params{'method'} eq "GET")
80 0 0 if ($params{'method'} =~ /^(PUT|POST)$/) { }
0 0 elsif ($params{'method'} =~ /^(GET|DELETE)$/) { }
89 0 0 if (%{$params{'post_data'};})
102 0 0 if ($response->is_success) { }
104 0 0 if $self->{'params'}{'debug'}
109 0 0 if (ref $data eq "HASH" and exists $data->{'data'})
112 0 0 if (ref $data->{'data'} eq "ARRAY")
116 0 0 wantarray ? :
138 0 0 unless my $self = shift()
144 0 0 unless my $self = shift()
148 0 0 if (ref $data eq "HASH" and $data->{'version'})
150 0 0 if $version > 2
158 0 0 unless my $self = shift()
161 0 0 if ($d) { }
0 0 elsif (defined $d) { }
168 0 0 if $self->{'params'}{'debug'}
175 0 0 unless my $self = shift()
176 0 0 unless my(@path) = @_
178 0 0 if ($self->nodes)
186 0 0 unless my $self = shift()
188 0 0 if ref $_[-1]
190 0 0 unless my(@path) = @_
209 0 0 if (scalar @p == 1) { }
0 0 elsif (scalar @p % 2 != 0) { }
211 0 0 unless ref $p[0] eq "HASH"
222 0 0 unless (%params) = @p
234 0 0 if keys %params
252 0 0 if ($ssl_opts)
268 0 0 unless my $self = shift()
270 0 0 if ref $_[-1]
272 0 0 unless my(@path) = @_
274 0 0 if ($self->nodes)
289 0 0 unless my $self = shift()
291 0 0 if ref $_[-1]
293 0 0 unless my(@path) = @_
295 0 0 if ($self->nodes)
311 0 0 unless my $self = shift()