Branch Coverage

blib/lib/HTML/Index/Store.pm
Criterion Covered Total %
branch 47 116 40.5


line true false branch
152 0 8 unless ref $document eq 'HTML::Index::Document'
156 0 8 unless defined $name
158 0 8 if (defined $file_id) { }
160 0 0 if $$self{'VERBOSE'}
166 0 8 if $$self{'VERBOSE'}
172 0 8 if $$self{'VERBOSE'}
173 8 0 if (defined $file_id)
192 0 0 unless ref $document eq 'HTML::Index::Document'
196 0 0 unless defined $name
197 0 0 if $$self{'VERBOSE'}
199 0 0 unless defined $file_id
205 0 0 if $new_file_ids eq $file_ids
223 0 19 if $$self{'VERBOSE'}
225 0 19 unless defined $q and length $q
227 0 19 unless $bitstring and length $bitstring
229 0 19 unless @bits
230 0 19 if $$self{'VERBOSE'}
231 29 123 $bits[$_] == 1 ? :
233 0 19 if $$self{'VERBOSE'}
254 0 91 unless length $_
256 8 83 unless /^.{2,}$/
257 0 83 unless /[a-z]/
258 0 83 if $self->_is_stopword($_)
260 83 0 if defined $_
262 8 37 wantarray ? :
288 0 0 unless exists $OPTIONS{$_}
292 1 19 if (defined $$self{$_}) { }
301 0 19 if $$self{$_} and $$self{'VERBOSE'}
305 0 4 if $$self{'STEM'}
333 0 163 unless defined $key
407 86 0 unless $$self{'COMPRESS'}
409 0 0 unless ($deflate, $status) = deflateInit(-'Level', Z_BEST_COMPRESSION())
413 0 0 unless $status == Z_OK()
416 0 0 unless $status == Z_OK()
424 163 0 unless $$self{'COMPRESS'}
426 0 0 unless ($inflate, $status) = inflateInit()
429 0 0 unless ($data, $status) = $inflate->inflate(\$data)
456 83 0 unless $$self{'stemmer'}
458 0 0 if $$self{'VERBOSE'}
465 4 0 unless $$self{'STOP_WORD_FILE'}
466 0 0 unless -e $$self{'STOP_WORD_FILE'}
467 0 0 unless -r $$self{'STOP_WORD_FILE'}
468 0 0 unless open STOPWORDS, $$self{'STOP_WORD_FILE'}
479 83 0 unless $$self{'STOP_WORD_FILE'}
488 0 69 $$self{'NOPACK'} ? :
495 0 19 $$self{'NOPACK'} ? :
518 0 0 unless $file_id
542 0 37 unless $w
544 0 37 unless $w
545 0 37 if $$self{'VERBOSE'}
547 1 2 if (not $file_ids and $$self{'SOUNDEX'} and $use_soundex)
550 0 1 if $$self{'VERBOSE'}
553 2 35 unless $file_ids
575 0 19 if ($@)
593 23 23 if ($$self{'SOUNDEX'})
620 30 39 if (defined $file_ids) { }
639 0 0 if ($$self{'NOPACK'})
643 0 0 $mask[$_] && $block[$_] ? :