Branch Coverage

blib/lib/Net/DSML.pm
Criterion Covered Total %
branch 151 288 52.4


line true false branch
107 0 0 ref $$opt{'url'} ? :
0 25 if $$opt{'url'}
108 0 25 $$opt{'debug'} ? :
115 0 0 ref $$opt{'process'} ? :
0 25 if $$opt{'process'}
116 0 25 unless $result
118 1 2 ref $$opt{'type'} ? :
3 22 if $$opt{'type'}
119 0 25 unless $result
121 1 2 ref $$opt{'referral'} ? :
3 22 if $$opt{'referral'}
122 0 25 unless $result
124 1 2 ref $$opt{'scope'} ? :
3 22 if $$opt{'scope'}
125 0 25 unless $result
127 0 0 ref $$opt{'order'} ? :
0 25 if $$opt{'order'}
128 0 25 unless $result
130 0 0 ref $$opt{'error'} ? :
0 25 if $$opt{'error'}
131 0 25 unless $result
133 1 2 ref $$opt{'time'} ? :
3 22 if $$opt{'time'}
134 0 25 unless $result
136 1 2 ref $$opt{'size'} ? :
3 22 if $$opt{'size'}
137 0 25 unless $result
139 1 2 ref $$opt{'base'} ? :
3 22 if $$opt{'base'}
140 0 25 unless $result
142 0 0 ref $$opt{'proxyid'} ? :
0 25 if $$opt{'proxyid'}
143 0 25 unless $result
145 0 0 ref $$opt{'bid'} ? :
0 25 if $$opt{'bid'}
146 0 25 unless $result
151 0 25 if ($$opt{'dn'} and $$opt{'password'})
153 0 0 ref $$opt{'dn'} ? :
154 0 0 ref $$opt{'password'} ? :
303 1 4 ref $$opt{'scope'} ? :
5 0 if ((ref $$opt{'scope'} ? ${$$opt{'scope'};} : $$opt{'scope'}) =~ /^(singleLevel||baseObject||wholeSubtree)$/)
337 1 4 ref $$opt{'referral'} ? :
5 0 if ((ref $$opt{'referral'} ? ${$$opt{'referral'};} : $$opt{'referral'}) =~ /^(neverDerefAliases||derefInSearching||derefFindingBaseObj||derefalways)$/)
369 1 4 ref $$opt{'type'} ? :
5 0 if (lc(ref $$opt{'type'} ? ${$$opt{'type'};} : $$opt{'type'}) =~ /^(false||true)$/)
402 1 4 ref $$opt{'size'} ? :
404 0 5 unless (length $refvalue)
437 1 4 ref $$opt{'time'} ? :
439 0 5 unless (length $refvalue)
472 1 1 ref $$opt{'order'} ? :
2 0 if (lc(ref $$opt{'order'} ? ${$$opt{'order'};} : $$opt{'order'}) =~ /^(sequential||unordered)$/)
507 1 1 ref $$opt{'process'} ? :
2 0 if (lc(ref $$opt{'process'} ? ${$$opt{'process'};} : $$opt{'process'}) =~ /^(sequential||parallel)$/)
540 0 2 unless (length $$opt{'error'})
546 1 1 ref $$opt{'error'} ? :
2 0 if (lc(ref $$opt{'error'} ? ${$$opt{'error'};} : $$opt{'error'}) =~ /^(exit||resume)$/)
578 1 1 ref $$opt{'id'} ? :
580 0 2 unless (length $refvalue)
614 2 11 ref $$opt{'id'} ? :
615 0 13 unless (length $refvalue)
646 2 10 ref $$opt{'base'} ? :
648 0 12 unless (length $refvalue)
653 12 0 if $refvalue =~ /(&||<||>||"||')/
675 0 0 if @_ >= 1
698 0 0 ref $opt ? :
823 2 1 if ($$opt{'id'}) { }
1 0 elsif ($ops{$id}{'pid'}) { }
825 1 1 ref $$opt{'id'} ? :
848 0 3 if defined $$opt{'control'}
874 0 0 ref $$opt{'dn'} ? :
875 0 0 unless (length $refvalue)
921 0 12 unless ($count)
927 0 12 unless (length $$opt{'sfilter'})
933 1 11 if ($$opt{'base'})
935 1 0 ref $$opt{'base'} ? :
0 1 unless ($dsml->setBase({'base', ref $$opt{'base'} ? ${$$opt{'base'};} : $$opt{'base'}}))
948 3 9 if ($$opt{'id'}) { }
9 0 elsif ($ops{$id}{'pid'}) { }
950 2 1 ref $$opt{'id'} ? :
982 11 1 if defined $$opt{'control'}
1023 0 2 ref $$opt{'dn'} ? :
1024 0 2 ref $$opt{'attribute'} ? :
1025 0 2 ref $$opt{'value'} ? :
1026 0 2 unless (length $dn)
1032 0 2 unless (length $attribute)
1038 0 2 unless (length $value)
1044 2 0 if $value =~ /(&||<||>||"||')/
1050 1 1 if ($$opt{'id'}) { }
1 0 elsif ($ops{$id}{'pid'}) { }
1052 0 1 ref $$opt{'id'} ? :
1068 0 2 if defined $$opt{'control'}
1106 0 2 ref $$opt{'dn'} ? :
1107 0 2 unless (length $refvalue)
1113 0 2 if (defined $$opt{'control'}) { }
1119 0 0 if ($ops{$id}{'pid'}) { }
1140 0 2 if ($$opt{'id'}) { }
1 1 elsif ($ops{$id}{'pid'}) { }
1142 0 0 ref $$opt{'id'} ? :
1205 0 1 ref $$opt{'dn'} ? :
1206 0 1 ref $$opt{'newrdn'} ? :
1207 0 1 ref $$opt{'newsuperior'} ? :
1208 0 1 ref $$opt{'deleteoldrdn'} ? :
1 0 if $$opt{'deleteoldrdn'}
1210 0 1 unless (length $dn)
1216 0 1 unless (length $newrdn)
1222 0 1 unless (length $newsuperior)
1232 0 1 if ($$opt{'id'}) { }
1 0 elsif ($ops{$id}{'pid'}) { }
1234 0 0 ref $$opt{'id'} ? :
1250 1 0 if $$opt{'deleteoldrdn'}
1252 0 1 if defined $$opt{'control'}
1305 0 2 ref $$opt{'dn'} ? :
1307 0 2 unless (length $dn)
1323 2 0 if ($$opt{'id'}) { }
0 0 elsif ($ops{$id}{'pid'}) { }
1325 1 1 ref $$opt{'id'} ? :
1346 4 6 if (ref $$opt{'attr'}{$i}) { }
1348 0 4 if (ref $$opt{'attr'}{$i} eq 'SCALAR') { }
4 0 elsif (ref $$opt{'attr'}{$i} eq 'ARRAY') { }
1372 0 2 if defined $$opt{'control'}
1430 0 2 ref $$opt{'dn'} ? :
1431 0 2 unless (length $dn)
1448 2 0 if ($$opt{'id'}) { }
0 0 elsif ($ops{$id}{'pid'}) { }
1450 1 1 ref $$opt{'id'} ? :
1476 2 4 if (ref $$opt{'modify'}{$action}{$i}) { }
1478 2 0 if (ref $$opt{'modify'}{$action}{$i} eq 'SCALAR') { }
0 0 elsif (ref $$opt{'modify'}{$action}{$i} eq 'ARRAY') { }
1480 0 2 if (not length ${$$opt{'modify'}{$action}{$i};}) { }
1494 0 0 if (length $val)
1511 4 0 if (length $$opt{'modify'}{$action}{$i})
1521 0 2 if defined $$opt{'control'}
1559 0 0 ref $$opt{'id'} ? :
1560 0 0 unless ($id)
1643 0 4 unless ($size)
1652 0 4 if length $ops{$id}{'auth'}
1664 0 4 if (not defined $$opt{'debug'}) { }
1686 0 0 if (length $postData{$id} == 0)
1726 0 0 if $ops{$id}{'debug'}
1734 0 0 if $authentication{$id}
1746 0 0 if ($res->is_success) { }
1748 0 0 if $ops{$id}{'debug'}
1753 0 0 if $ops{$id}{'debug'}
1759 0 0 if (length $content{$id} == 0)