Branch Coverage

blib/lib/Bible/OBML/Gateway.pm
Criterion Covered Total %
branch 18 48 37.5


line true false branch
33 1 1 if ($class eq 'lang') { }
1 0 elsif (not $class) { }
67 1 0 unless @$runs != 1 or not $runs->[0] =~ /\w\s*\d/u
76 0 1 if $result->dom->at("div.content-section")
83 0 1 unless $html
88 0 1 unless $ref_display and $ref_display->text
93 0 1 if $translation eq "EXB"
109 0 1 if $_ = $block->find("div.poetry > h2")->first
130 0 1 if ($footnotes)
146 1 0 if ($crossrefs)
201 0 8 if ($_->attr('class') eq 'footnote') { }
8 0 elsif ($_->attr('class') eq 'crossreference') { }
204 0 0 $$footnotes{$_->attr('data-fn')} ? :
211 8 0 $$crossrefs{$_->attr('data-cr')} ? :
228 8 0 $previous ? :
235 8 0 $next ? :
237 0 8 if length $previous_char and length $next_char and $previous_char =~ /[:;,\w\!\.\?]/u and $next_char =~ /\w/u
276 0 0 if ($_->child_nodes->size) { }
280 0 0 $_->following_nodes->size ? :
0 0 $_->find('td text')->map('text')->last =~ /\W$/u ? :
0 0 $_->following_nodes->size ? :
300 0 0 if $_->next and $_->next->tag eq "li"
333 0 0 if ($_->previous->attr("level") eq $_->attr("level"))
341 0 1 if $block->at("p") and not $block->at("p")->at("verse_number")