Branch Coverage

lib/Net/LDAP/SimpleServer/LDIFStore.pm
Criterion Covered Total %
branch 22 38 57.8


line true false branch
22 0 16 unless defined $param
38 1 15 unless $param
40 0 15 if (&blessed($param) and $param->isa('Net::LDAP::LDIF')) { }
63 0 15 if ($reftype eq 'HASH')
65 0 0 unless exists $param->{'ldif'}
72 0 0 exists $param->{'ldif_options'} ? :
80 1 14 unless -r $param
88 14 8 if $dn->isa('Net::LDAP::Entry')
96 42 0 unless defined $tree
97 14 28 if (scalar @path == 0) { }
103 28 0 unless exists $tree->{'_object'}
135 0 14 if ($ldif->error)
149 0 21 unless exists $tree->{$rdn}
150 8 13 if scalar @path == 0
157 0 8 if $dn->isa('Net::LDAP::Entry')
173 3 0 if defined $tree
198 0 2 unless defined $entry
208 0 2 unless defined $tree
221 0 2 unless defined $tree