Branch Coverage

blib/lib/Nagios/Plugin/LDAP.pm
Criterion Covered Total %
branch 0 48 0.0


line true false branch
119 0 0 if (my $ldap = $self->_ldap_connect($hostname))
120 0 0 if ($self->_ldap_bind($ldap))
138 0 0 $opts->get('ver3') ? :
141 0 0 $ssl ? :
143 0 0 if ($ssl and not eval { do { require Net::LDAPS } })
156 0 0 unless ($ldap)
162 0 0 if ($starttls)
164 0 0 if ($mesg->code)
177 0 0 unless my $bind = $opts->get('bind')
180 0 0 $pass ? :
183 0 0 if ($mesg->code)
196 0 0 unless ($base)
201 0 0 @attrs ? :
0 0 @attrs ? :
207 0 0 if ($mesg->code)
212 0 0 unless ($mesg->count)
227 0 0 unless $warning or $critical
251 0 0 unless my $master = $opts->get('master')
257 0 0 unless $warning or $critical
259 0 0 unless my $src_ldap = $self->_ldap_connect($master)
261 0 0 unless my $src_entry = $self->_ldap_do_search($src_ldap, '(&(objectClass=*)(contextCSN=*))', 'contextCSN')
264 0 0 unless my $dst_entry = $self->_ldap_do_search($dst_ldap, '(&(objectClass=*)(contextCSN=*))', 'contextCSN')
271 0 0 if $verbose
272 0 0 if $verbose