Branch Coverage

blib/lib/Net/OpenStack/Client/API/Convert.pm
Criterion Covered Total %
branch 38 44 86.3


line true false branch
57 46 57 unless (defined $funcref)
60 0 0 if grep {$_ eq $type;} @{$CONVERT_ALIAS{$tmpref};}
64 57 46 if (defined $funcref) { }
66 4 53 if ($vref eq 'ARRAY') { }
1 52 elsif ($vref eq 'HASH') { }
99 0 120 if ($attr)
104 52 68 $opt->{'required'} ? :
106 38 82 if (not defined $value) { }
82 0 elsif (not $ref or $ref eq 'ARRAY') { }
107 5 33 if ($mandatory)
115 2 80 if ($wref eq 'ARRAY') { }
79 1 elsif ($wref eq 'HASH') { }
123 2 80 if $@
203 0 38 if ($raw and ref $raw ne 'HASH')
210 12 26 unless $cmdhs->{'templates'}
213 2 38 if $errmsg
217 24 12 unless $cmdhs->{'parameters'}
220 0 30 if $errmsg
226 3 33 unless $cmdhs->{'options'}
228 42 2 unless exists $opt->{$name}
233 3 41 if $errmsg
239 1 1 if ($name =~ /$API_REST_OPTION_PATTERN/) { }