Branch Coverage

blib/lib/PixieLdap.pm
Criterion Covered Total %
branch 0 120 0.0


line true false branch
30 0 0 unless (defined $configfile)
34 0 0 if ($$config{'secure'} == '1') { }
35 0 0 unless $conn = 'Net::LDAPS'->new($$config{'server'}, 'verify', 'none')
38 0 0 unless $conn = 'Net::LDAP'->new($$config{'server'})
42 0 0 if ($message->code)
52 0 0 unless (defined $configfile)
56 0 0 if ($$config{'secure'} == '1') { }
57 0 0 unless $conn = 'Net::LDAPS'->new($$config{'server'}, 'verify', 'none')
60 0 0 unless $conn = 'Net::LDAP'->new($$config{'server'}, 'verify', 'none')
64 0 0 if ($message->code)
74 0 0 unless (defined $configfile)
76 0 0 unless (defined $filter)
78 0 0 unless (defined $base)
84 0 0 if $search->code
93 0 0 unless (defined $configfile)
95 0 0 unless (defined $group)
97 0 0 unless (defined $uid)
105 0 0 if $search->code
107 0 0 if ($search)
112 0 0 if $modify->code
123 0 0 unless (defined $configfile)
125 0 0 unless (defined $group)
138 0 0 if $add->code
147 0 0 if (lc $answer eq 'y')
159 0 0 unless (defined $configfile)
161 0 0 unless (defined $uid)
163 0 0 unless (defined $cli)
184 0 0 if $shadowMax eq 'Unknown'
185 0 0 if $loginShell eq 'Unknown'
190 0 0 unless (defined $gidNumber)
228 0 0 if $add->code
237 0 0 unless (defined $configfile)
239 0 0 unless (defined $filter)
241 0 0 unless (defined $base)
243 0 0 unless (defined $uid)
251 0 0 if $search->code
253 0 0 if ($search)
258 0 0 if $delete->code
269 0 0 unless (defined $configfile)
271 0 0 unless (defined $filter)
273 0 0 unless (defined $base)
279 0 0 if $delete->code
288 0 0 unless (defined $configfile)
290 0 0 unless (defined $uid)
302 0 0 if $modify->code
311 0 0 unless (defined $configfile)
319 0 0 if $uids->code
321 0 0 unless $uids->count
324 0 0 unless $highest
332 0 0 unless (defined $configfile)
340 0 0 if $gids->code
342 0 0 unless $gids->count
345 0 0 unless $highest
353 0 0 unless (defined $configfile)
355 0 0 unless (defined $group)
359 0 0 if defined($entry = $search->entry('0'))
376 0 0 unless (defined $question)
378 0 0 unless (defined $cli)
379 0 0 if $cli != '1'
381 0 0 unless $answer