Branch Coverage

blib/lib/WWW/DuckDuckGo/ZeroClickInfo.pm
Criterion Covered Total %
branch 21 52 40.3


line true false branch
17 1 0 if ($$result{'RelatedTopics'})
19 0 1 if ($$result{'RelatedTopics'}[0]{'Topics'}) { }
21 0 0 if $$_{'Name'} eq '_'
24 0 0 if ref $_ eq 'HASH' and %{$_;}
31 1 0 if ref $_ eq 'HASH' and %{$_;}
33 1 0 if @topics
38 1 0 if ref $_ eq 'HASH' and %{$_;}
41 1 0 if @results
42 1 0 if $$result{'Abstract'}
43 1 0 if $$result{'AbstractText'}
44 1 0 if $$result{'AbstractSource'}
45 1 0 if $$result{'AbstractURL'}
46 1 0 if $$result{'Image'}
47 1 0 if $$result{'Heading'}
48 0 1 if $$result{'Answer'}
49 0 1 if $$result{'AnswerType'}
50 0 1 if $$result{'Definition'}
51 0 1 if $$result{'DefinitionSource'}
52 0 1 if $$result{'DefinitionURL'}
53 1 0 if $$result{'Type'}
54 1 0 if $$result{'HTML'}
55 0 1 if $$result{'Redirect'}
132 0 0 if $self->has_related_topics_sections
137 0 0 defined $self->related_topics_sections->{'_'} ? :
0 0 if $self->has_related_topics_sections
176 0 1 unless $self->type