Branch Coverage

blib/lib/Religion/Bible/Reference.pm
Criterion Covered Total %
branch 37 48 77.0


line true false branch
19 9 0 if @_ == 1
96 0 9 unless $$self{'book'} = $class->canonicalize_book($bibref{'book'})
100 0 9 unless my $range = $self->_parse_ranges($bibref{'ranges'})
105 2 7 unless $class->_validate_ranges($$self{'book'}, $$self{'chapter'}, $$self{'ranges'})
118 1 13 unless $class->validate_verse($book, $chapter, $$range[0])
119 1 12 unless $class->validate_verse($book, $chapter, $$range[1])
129 0 9 unless $chapter
130 1 8 unless $rest
140 0 13 unless $start
141 8 5 defined $end ? :
162 0 7 unless @{$$self{'ranges'};}
172 6 9 $$_[0] == $$_[1] ? :
206 0 1 unless @{$$self{'ranges'};}
232 0 9 if $book_abbrev{$book_abbrev}
235 0 207 if lc $book eq $lc_abbrev
237 9 66 if $book_abbrev =~ /$_/
75 243 if (ref $_) { }
238 0 243 if $lc_abbrev eq lc $_
255 0 27 unless exists $book_chapters{$book}
256 1 26 unless defined $book_chapters{$book}[$chapter - 1]
257 1 25 unless $book_chapters{$book}[$chapter - 1] >= $verse
288 3 61 unless @{$$self{'ranges'};}
293 7 54 if ($position == $$self{'ranges'}[0][1]) { }
299 5 56 wantarray ? :