Branch Coverage

blib/lib/Test/Net/LDAP/Mock.pm
Criterion Covered Total %
branch 28 32 87.5


line true false branch
127 8 22 if $class eq 'Net::LDAP'
144 20 10 if @_ % 2
147 12 18 if ($mock_target)
150 4 8 if (ref $mock_target eq 'CODE') { }
4 4 elsif (ref $mock_target eq 'ARRAY') { }
0 4 elsif (ref $mock_target eq 'HASH') { }
160 12 0 if defined $new_host
161 8 4 if defined $new_arg
169 1 29 if (ref $host)
173 20 10 if (length $host) { }
174 18 2 if ($scheme ne 'ldapi')
175 10 8 if ($$arg{'port'}) { }
8 0 elsif (not $host =~ /:\d+$/) { }
349 3 3 if (@_) { }
353 1 2 if (@_ >= 2) { }
0 2 elsif (@_ == 1) { }