Branch Coverage

lib/OVH/OvhApi.pm
Criterion Covered Total %
branch 0 30 0.0


line true false branch
54 0 0 if (my(@missingParameters) = grep({not $params{$_};} "applicationKey", "applicationSecret"))
60 0 0 unless ($params{'type'} and grep {$params{'type'} eq $_;} "https://eu.api.ovh.com/1.0", "https://ca.api.ovh.com/1.0")
78 0 0 if ($params{'timeout'} =~ /^\d+$/) { }
0 0 elsif (exists $params{'timeout'}) { }
105 0 0 substr($params{'path'}, 0, 1) eq '/' ? :
112 0 0 if ($method ne "get" and $method ne "delete")
120 0 0 unless ($params{'noSignature'})
146 0 0 unless $params{'accessRules'}
147 0 0 if ref $params{'accessRules'} ne "ARRAY"
150 0 0 if ref $_ ne "HASH"
156 0 0 unless $rule{'method'} and $rule{'path'}
157 0 0 unless &first(sub {
159 0 0 if ($rule{'method'} eq 'ALL') { }
190 0 0 unless (defined $self->{'_timeDelta'})
192 0 0 if (my $ServerTimeResponse = $self->get('path', 'auth/time', 'noSignature', 1)) { }