Branch Coverage

blib/lib/Dancer/Plugin/LDAP.pm
Criterion Covered Total %
branch 0 36 0.0


line true false branch
85 0 0 unless $settings
98 0 0 if (ref $arg eq 'HASH') { }
102 0 0 defined $arg ? :
104 0 0 unless ($conn_details)
118 0 0 if $INC{'threads.pm'}
123 0 0 if ($$handle{'dbh'}) { }
124 0 0 if ($$conn_details{'connection_check_threshold'} and time - $$handle{'last_connection_check'} < $$conn_details{'connection_check_threshold'}) { }
130 0 0 if (_check_connection($$handle{'dbh'})) { }
137 0 0 if ($$handle{'dbh'})
144 0 0 if ($$handle{'dbh'} = _get_connection($conn_details)) { }
162 0 0 unless ($ldap = 'Net::LDAP'->new($$settings{'uri'}))
170 0 0 if ($ldret->code)
185 0 0 unless $ldap
186 0 0 unless $ldap->socket
195 0 0 if (not defined $name) { }
199 0 0 unless exists $$settings{'connections'}
203 0 0 if (my $settings = $$settings{'connections'}{$name}) { }
218 0 0 if (exists $$return_settings{'connectivity-check-threshold'} and not exists $$return_settings{'connection_check_threshold'})