blib/lib/Test/Net/LDAP/Mock/Data.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 41 | 59 | 69.4 |
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 | 40 | defined $filter and not ref $filter |
11 | 1 | 39 | defined $filter and not ref $filter and $filter ne '' | |
305 | 107 | 88 | 0 | $entry and !$filter || $filter->match($entry, $schema) |
346 | 0 | 0 | 5 | $node and $node->entry |
439 | 2 | 0 | 14 | $node and $node->entry |
527 | 1 | 0 | 4 | $node and $node->entry |
560 | 1 | 0 | 8 | $old_node and $old_node->entry |
line | l | !l | condition |
---|---|---|---|
149 | 29 | 46 | $$arg{'attrs'} || [] |
203 | 6 | 3 | $$self{'mock_bind_message'} || '' |
208 | 2 | 1 | $result[0] || '0' |
260 | 35 | 17 | $$arg{'base'} || '' |
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 } |
208 | 1 | 2 | 0 | $result[1] || $message |
213 | 2 | 2 | 0 | $message || $code->error |
305 | 23 | 52 | 13 | !$filter || $filter->match($entry, $schema) |
397 | 11 | 0 | 24 | $$arg{'attrs'} or $$arg{'attr'} |