Branch Coverage

blib/lib/Net/OpenStack/Compute.pm
Criterion Covered Total %
branch 5 62 8.0


line true false branch
48 0 0 unless $ENV{'NOVA_URL'} or $ENV{'OS_AUTH_URL'}
50 0 0 unless $ENV{'NOVA_USERNAME'} or $ENV{'OS_USERNAME'}
52 0 0 unless $ENV{'NOVA_PASSWORD'} or $ENV{'NOVA_API_KEY'} or $ENV{'OS_PASSWORD'}
84 0 0 unless my $q = $params{'query'}
85 0 0 unless /^\?/
98 0 0 unless $id
100 0 0 unless $res->is_success
112 1 2 unless $data and 'HASH' eq ref $data
113 0 2 unless defined $$data{'name'}
114 0 2 unless defined $$data{'flavorRef'}
115 0 2 unless defined $$data{'imageRef'}
128 0 0 unless $server
129 0 0 unless $data and 'HASH' eq ref $data
130 0 0 unless $$data{'imageRef'}
137 0 0 unless $server
138 0 0 unless $data and 'HASH' eq ref $data
139 0 0 unless $$data{'flavorRef'}
146 0 0 unless $server
147 0 0 unless $data and 'HASH' eq ref $data
148 0 0 unless $$data{'type'}
155 0 0 unless $server
156 0 0 unless defined $password
165 0 0 unless $server
189 0 0 unless $res->is_success
195 0 0 unless defined $server
196 0 0 unless $data and 'HASH' eq ref $data
197 0 0 unless defined $$data{'name'}
218 0 0 unless $res->is_success
225 0 0 if $is_detail
226 0 0 if $query
257 0 0 if not $res->is_success and $res->code != 404