Condition Coverage

blib/lib/Test/Net/LDAP/Mock/Data.pm
Criterion Covered Total %
condition 43 61 70.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')
183 25 1 4 $$self{'password_mocked'} and exists $$arg{'password'}
196 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'}
269 11 0 38 defined $filter and not ref $filter
11 1 37 defined $filter and not ref $filter and $filter ne ''
304 87 67 0 $entry and !$filter || $filter->match($entry, $schema)
345 0 0 5 $node and $node->entry
438 2 0 14 $node and $node->entry
526 1 0 4 $node and $node->entry
559 1 0 8 $old_node and $old_node->entry

or 2 conditions

line l !l condition
149 29 27 $$arg{'attrs'} || []
203 6 3 $$self{'mock_bind_message'} || ''
208 2 1 $result[0] || '0'
260 33 17 $$arg{'base'} || ''
281 42 6 $$arg{'scope'} or 0

or 3 conditions

line l !l&&r !l&&!r condition
44 20 8 0 $$self{'ldap'} ||= do { require Test::Net::LDAP::Mock; my $ldap = 'Test::Net::LDAP::Mock'->new; $$ldap{'mock_data'} = $self; $ldap }
208 1 2 0 $result[1] || $message
213 2 2 0 $message || $code->error
304 7 49 11 !$filter || $filter->match($entry, $schema)
396 11 0 23 $$arg{'attrs'} or $$arg{'attr'}