Condition Coverage

blib/lib/Test/Net/LDAP/Mock/Data.pm
Criterion Covered Total %
condition 41 59 69.4


and 3 conditions

line !l l&&!r l&&r condition
96 0 1 0 $_[0] and blessed($_[0])
1 0 0 $_[0] and blessed($_[0]) and $_[0]->isa('Net::LDAP::Entry')
184 25 1 4 $$self{'password_mocked'} and exists $$arg{'password'}
197 0 0 2 defined $node->password and defined $$arg{'password'}
0 1 1 defined $node->password and defined $$arg{'password'} and $node->password eq $$arg{'password'}
270 11 0 42 defined $filter and not ref $filter
11 1 41 defined $filter and not ref $filter and $filter ne ''
306 109 92 0 $entry and !$filter || $filter->match($entry, $schema)
347 0 0 5 $node and $node->entry
440 2 0 14 $node and $node->entry
528 1 0 4 $node and $node->entry
561 1 0 8 $old_node and $old_node->entry

or 2 conditions

line l !l condition
149 31 46 $$arg{'attrs'} || []
204 6 3 $$self{'mock_bind_message'} || ''
209 2 1 $result[0] || '0'
261 37 17 $$arg{'base'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
44 22 8 0 $$self{'ldap'} ||= do { require Test::Net::LDAP::Mock; my $ldap = 'Test::Net::LDAP::Mock'->new; $$ldap{'mock_data'} = $self; $ldap }
209 1 2 0 $result[1] || $message
214 2 2 0 $message || $code->error
306 23 54 15 !$filter || $filter->match($entry, $schema)
398 11 0 24 $$arg{'attrs'} or $$arg{'attr'}