Condition Coverage

blib/lib/Bible/Reference.pm
Criterion Covered Total %
condition 83 109 76.1


and 3 conditions

line !l l&&!r l&&r condition
396 2372 3 1367 length $unique >= $self->minimum_book_length and !@prefix && scalar grep({index($_, $unique) == 0;} @$canonical) == 1 || @prefix && scalar grep({index($_, $prefix[-1] . ' ' . $unique) == 0;} @$canonical) == 1
481 77 101 11 not $start_ch and $stop_ch
178 10 1 not $start_ch and $stop_ch and $start > $stop_ch
489 111 69 9 $start_ch and $stop_ch
180 0 9 $start_ch and $stop_ch and $start
69 0 9 $start_ch and $stop_ch and $start and $stop
0 7 2 $start_ch and $stop_ch and $start and $stop and $start_ch == $stop_ch
505 10 7 71 $start_ch and not $stop_ch
7 0 10 not $start_ch and $stop_ch
0 0 7 $start_ch and $stop_ch
520 65 1 5 $start >= $stop and $stop > $start_ch
66 1 4 $start >= $stop and $stop > $start_ch and not $skip_chapter_assumption_check
685 0 0 0 $self->_cache->{'sorting'} && $self->_cache->{'sorting'} == $self->sorting && $self->_cache->{'acronyms'} && $self->_cache->{'acronyms'} == $self->acronyms
779 0 0 18 $chapter->[1] and join(",", @{$chapter->[1];}) eq join(",", 1 .. $self->_bible_data->{'lengths'}{$book}[$chapter->[0] - 1] || 0)
930 1 1 0 @text > 1 && wantarray
1 0 1 @text > 1 && !wantarray
935 1 0 3 $bible and not ref $bible
1 0 3 $bible and not ref $bible and length $bible > 0
937 1 0 2 $book_data and ref $book_data eq "ARRAY"
941 0 1 40 ref $_ eq "ARRAY" and not ref $_->[0]
1 0 40 ref $_ eq "ARRAY" and not ref $_->[0] and length $_->[0] > 0
1 0 40 ref $_ eq "ARRAY" and not ref $_->[0] and length $_->[0] > 0 and not ref $_->[1]
0 0 40 ref $_ eq "ARRAY" and not ref $_->[0] and length $_->[0] > 0 and not ref $_->[1] and length $_->[1] > 0

or 2 conditions

line l !l condition
348 18 0 $name || ''
599 168 8 $string // ""
637 1254 164 $2 || ''
693 40 19 $data //= [map({grep {ref $_;} @$_;} @{$self->_data;})]
718 75 1 $self->_bible_data->{'lengths'}{$book}[$_->[0] - 1] || 0
24 76 $_->[1] //= [1 .. $self->_bible_data->{'lengths'}{$book}[$_->[0] - 1] || 0]
740 121 927 $$dedup{$chapter->[0]} //= {}
779 18 0 $self->_bible_data->{'lengths'}{$book}[$chapter->[0] - 1] || 0

or 3 conditions

line l !l&&r !l&&!r condition
396 876 493 1 !@prefix && scalar grep({index($_, $unique) == 0;} @$canonical) == 1 || @prefix && scalar grep({index($_, $prefix[-1] . ' ' . $unique) == 0;} @$canonical) == 1
461 0 2 0 $params{'bible'} || $self->_bible
505 78 10 101 $start_ch || $stop_ch
639 136 16 1266 $s eq ":" or $d <= $last_d
656 164 176 1 @$numbers or not $self->require_chapter_match
685 40 1 18 $data or not $self->_cache->{'data'}
41 18 0 $data or not $self->_cache->{'data'} or not $self->_cache->{'sorting'} && $self->_cache->{'sorting'} == $self->sorting && $self->_cache->{'acronyms'} && $self->_cache->{'acronyms'} == $self->acronyms
825 86 26 390 not $last or $last + 1 != $item