Branch Coverage

blib/lib/OpenStack/Client/Auth/v3.pm
Criterion Covered Total %
branch 24 28 85.7


line true false branch
19 1 14 unless defined $args{'tenant'}
20 1 13 unless defined $args{'username'}
21 1 12 unless defined $args{'password'}
48 0 12 if defined $args{'scope'}
58 1 11 unless (defined $response->header('X-Subject-Token'))
62 1 10 unless (defined $body->{'token'})
66 1 9 unless (defined $body->{'token'}{'catalog'})
110 2 8 if (defined $self->{'clients'}{$type})
114 1 7 if (defined $opts{'uri'})
125 0 7 unless ($opts{'endpoint'} =~ /^(?:public|internal|admin)$/)
130 1 6 unless $type eq $service->{'type'}
133 0 9 if defined $opts{'id'} and $endpoint->{'id'} ne $opts{'id'}
134 0 9 if defined $opts{'region'} and $endpoint->{'region'} ne $opts{'region'}
135 3 6 if defined $opts{'endpoint'} and $endpoint->{'interface'} ne $opts{'endpoint'}