Branch Coverage

blib/lib/Tie/DuckDuckGo.pm
Criterion Covered Total %
branch 15 22 68.1


line true false branch
28 1 2 if ($type eq 'array') { }
1 1 elsif ($type eq 'hash') { }
44 0 3 unless defined $query
62 0 45 unless my($link) = $result->findnodes('.//a[@class="large"]')
70 1 44 if $scalar
73 1 2 $scalar ? :
78 1 22 unless defined $index
81 0 23 if ($$self{'type'} eq 'hash')
82 0 0 unless exists $$self{'data'}{$index}
102 0 0 if (@_ > 3)
112 1 1 if $$self{'type'} eq 'hash'