Branch Coverage

blib/lib/OpenStack/MetaAPI.pm
Criterion Covered Total %
branch 20 32 62.5


line true false branch
54 0 3 unless defined $opts{'flavor'}
56 0 3 unless defined $opts{'network'}
58 0 3 unless defined $opts{'image'}
59 0 3 unless defined $opts{'name'}
61 0 3 unless defined $opts{'network_for_floating_ip'}
77 2 0 if (_looks_valid_id($opts{'image'}))
86 2 0 if (defined $opts{'key_name'})
102 0 2 unless _looks_valid_id($server_uid)
118 1 4 if (ref $server_status and $server_status->{'status'} and $server_status->{'status'} and lc $server_status->{'status'} eq 'active')
125 2 2 if $self->create_loop_sleep
128 1 1 unless $server_is_ready
138 0 1 unless ref $floating_ip and _looks_valid_id($floating_ip->{'id'})
156 0 11 if (_looks_valid_id($id_or_name))
161 1 10 if (ref $entry ne 'HASH' or not _looks_valid_id($entry->{'id'}))
171 0 26 unless defined $id
172 0 26 if ref $id