Branch Coverage

blib/lib/Net/FreeIPA/Error.pm
Criterion Covered Total %
branch 30 30 100.0


line true false branch
98 10 45 if ($nrargs == 1) { }
35 10 elsif ($nrargs > 1) { }
102 1 9 if ($ref eq 'Net::FreeIPA::Error') { }
2 7 elsif ($ref eq 'HASH') { }
3 4 elsif (defined $err and $ref eq '') { }
1 3 elsif (defined $err) { }
151 84 53 unless defined $reverse_lookup
155 53 84 if (defined $type) { }
158 28 25 if ($type =~ /^\d+$/) { }
159 17 11 if exists $REVERSE_ERROR_CODES{$type}
162 20 5 if exists $ERROR_CODES{$type}
168 15 23 if $reverse_lookup and defined $revtype and not $res
173 80 57 $res ? :
238 27 11 if ($self->is_error) { }
241 28 53 if exists $self->{$attr}