Branch Coverage

blib/lib/NNexus/Discover.pm
Criterion Covered Total %
branch 39 50 78.0


line true false branch
75 0 8 unless ref $db
76 0 8 unless defined $format
77 0 8 unless $body
80 1 7 if ($url)
83 0 1 unless defined $domain
85 1 0 if ($objectid == -1) { }
100 0 8 if ($options{'verbosity'})
105 2 6 if ($format eq 'html') { }
6 0 elsif ($format eq 'text') { }
119 1 42 unless $$_{'concept'} ne $concept or $$_{'link'} ne $link
123 1 7 if $url
128 0 8 if ($options{'verbosity'})
133 1 7 if ($objectid)
146 0 2 unless $body
160 580 85 if ($$self{'noparse'} and $$self{'noparse'} > 0 or not $body =~ /\w/)
206 134 267 if (not ref $cached) { }
219 387 14 unless @candidates
234 10 4 if ($inner_body =~ /^(\s+)($concept_word_rex)/s) { }
242 6 4 if (@inner_candidates) { }
249 6 0 if (@step_matches)
259 10 4 if (@inner_matches > 0) { }
270 2 20 if $$_{'category'} eq $category
272 2 20 unless $$_{'category'} ne $category
273 0 20 if (@multilinks > 0)
291 6 4 if $match_offset