Condition Coverage

blib/lib/Bible/Reference.pm
Criterion Covered Total %
condition 76 101 75.2


and 3 conditions

line !l l&&!r l&&r condition
708 1918 3 1035 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
793 68 99 11 not $start_ch and $stop_ch
167 10 1 not $start_ch and $stop_ch and $start > $stop_ch
801 109 60 9 $start_ch and $stop_ch
169 0 9 $start_ch and $stop_ch and $start
60 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
817 10 7 62 $start_ch and not $stop_ch
7 0 10 not $start_ch and $stop_ch
0 0 7 $start_ch and $stop_ch
832 56 1 5 $start >= $stop and $stop > $start_ch
57 1 4 $start >= $stop and $stop > $start_ch and not $skip_chapter_assumption_check
990 0 0 0 $self->_cache->{'sorting'} && $self->_cache->{'sorting'} == $self->sorting && $self->_cache->{'acronyms'} && $self->_cache->{'acronyms'} == $self->acronyms
1214 0 1 0 @text > 1 && wantarray
0 0 1 @text > 1 && !wantarray
1219 1 0 3 $bible and not ref $bible
1 0 3 $bible and not ref $bible and length $bible > 0
1221 1 0 2 $data and ref $data eq "ARRAY"
1225 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
661 15 0 $name || ''
911 156 8 $string // ""
947 1015 159 $2 || ''
998 39 14 $data //= [map({grep {ref $_;} @$_;} @{$self->_data;})]
1023 66 1 $self->_bible_data->{'lengths'}{$book}[$_->[0] - 1] || 0
15 67 $_->[1] //= [1 .. $self->_bible_data->{'lengths'}{$book}[$_->[0] - 1] || 0]
1045 121 908 $$dedup{$chapter->[0]} //= {}

or 3 conditions

line l !l&&r !l&&!r condition
708 713 324 1 !@prefix && scalar grep({index($_, $unique) == 0;} @$canonical) == 1 || @prefix && scalar grep({index($_, $prefix[-1] . ' ' . $unique) == 0;} @$canonical) == 1
773 0 2 0 $params{'bible'} || $self->_bible
817 69 10 99 $start_ch || $stop_ch
949 127 16 1031 $s eq ":" or $d <= $last_d
990 39 1 13 $data or not $self->_cache->{'data'}
40 13 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
1109 83 26 384 not $last or $last + 1 != $item