Branch Coverage

blib/lib/Net/FreeIPA/API/Convert.pm
Criterion Covered Total %
branch 34 36 94.4


line true false branch
57 3 18 unless (defined $funcref)
60 2 1 if grep {$_ eq $type;} @{$CONVERT_ALIAS{$tmpref};}
64 20 1 if (defined $funcref) { }
66 3 17 if ($vref eq 'ARRAY') { }
1 16 elsif ($vref eq 'HASH') { }
101 8 15 $cmd->{'required'} && !$cmd->{'autofill'} ? :
104 4 19 $cmd->{'multivalue'} ? :
106 6 17 if (not defined $value) { }
11 6 elsif (not $ref || $multi or $ref eq 'ARRAY' and $multi) { }
107 3 3 if ($mandatory)
116 7 4 if ($wref eq 'ARRAY') { }
3 1 elsif ($wref eq 'HASH') { }
124 1 10 if $@
174 0 6 unless $cmds->{'takes_args'}
177 2 4 if $errmsg
185 0 4 unless $cmds->{'takes_options'}
188 2 2 if $errmsg
194 1 1 if ($name =~ /$API_RPC_OPTION_PATTERN/) { }