Branch Coverage

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


line true false branch
58 3 18 unless (defined $funcref)
61 2 1 if grep {$_ eq $type;} @{$CONVERT_ALIAS{$tmpref};}
65 20 1 if (defined $funcref) { }
67 3 17 if ($vref eq 'ARRAY') { }
1 16 elsif ($vref eq 'HASH') { }
102 8 15 $cmd->{'required'} && !$cmd->{'autofill'} ? :
105 4 19 $cmd->{'multivalue'} ? :
107 6 17 if (not defined $value) { }
11 6 elsif (not $ref || $multi or $ref eq 'ARRAY' and $multi) { }
108 3 3 if ($mandatory)
117 7 4 if ($wref eq 'ARRAY') { }
3 1 elsif ($wref eq 'HASH') { }
125 1 10 if $@
175 0 6 unless $cmds->{'takes_args'}
178 2 4 if $errmsg
186 0 4 unless $cmds->{'takes_options'}
189 2 2 if $errmsg
195 1 1 if ($name =~ /$API_RPC_OPTION_PATTERN/) { }