Branch Coverage

blib/lib/Net/OpenStack/Client/Error.pm
Criterion Covered Total %
branch 27 30 90.0


line true false branch
91 64 29 if ($nrargs == 1) { }
19 10 elsif ($nrargs > 1) { }
95 1 63 if ($ref eq 'Net::OpenStack::Client::Error') { }
3 60 elsif ($ref eq 'HASH') { }
3 57 elsif (defined $err and $ref eq '') { }
1 56 elsif (defined $err) { }
144 61 366 unless defined $reverse_lookup
148 16 411 if (defined $type) { }
151 11 5 if ($type =~ /^\d+$/) { }
152 0 11 if exists $REVERSE_ERROR_CODES{$type}
155 0 5 if exists $ERROR_CODES{$type}
161 0 16 if $reverse_lookup and defined $revtype and not $res
166 59 368 $res ? :
191 26 11 if ($self->is_error) { }
194 30 100 if exists $self->{$attr}