Branch Coverage

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


line true false branch
96 10 41 if ($nrargs == 1) { }
31 10 elsif ($nrargs > 1) { }
100 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) { }
149 80 50 unless defined $reverse_lookup
153 46 84 if (defined $type) { }
156 25 21 if ($type =~ /^\d+$/) { }
157 14 11 if exists $REVERSE_ERROR_CODES{$type}
160 16 5 if exists $ERROR_CODES{$type}
166 12 22 if $reverse_lookup and defined $revtype and not $res
171 77 53 $res ? :
220 27 11 if ($self->is_error) { }
223 28 53 if exists $self->{$attr}